system_goto_action_form

6 system.module system_goto_action_form($context)
7 system.module system_goto_action_form($context)
8 system.module system_goto_action_form($context)

Implementation of a configurable Drupal action. Redirect user to a URL.

File

modules/system/system.module, line 1914
Configuration system that lets administrators modify the workings of the site.

Code

function system_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 http://drupal.org.'), 
    '#default_value' => isset($context['url']) ? $context['url'] : '', 
    '#required' => TRUE,
  );
  return $form;
}
Login or register to post comments