function action_goto_action_form

Constructs the settings form for action_goto_action().

See also

action_goto_action_submit()

File

drupal/core/modules/action/action.module, line 674
This is the Actions module for executing stored actions.

Code

function action_goto_action_form($context) {
  $form['url'] = array(
    '#type' => 'textfield',
    '#title' => t('URL'),
    '#description' => t('The URL to which the user should be redirected. This can be an internal URL like node/1234 or an external URL like @url.', array(
      '@url' => 'http://drupal.org',
    )),
    '#default_value' => isset($context['url']) ? $context['url'] : '',
    '#required' => TRUE,
  );
  return $form;
}