function url_alter_settings_form in URL alter 6
@file Administrative page callbacks for the url_alter module.
1 string reference to 'url_alter_settings_form'
- url_alter_menu in ./
url_alter.module - Implementation of hook_menu().
File
- ./
url_alter.admin.inc, line 8 - Administrative page callbacks for the url_alter module.
Code
function url_alter_settings_form() {
$form['url_alter_inbound'] = array(
'#type' => 'textarea',
'#title' => t('PHP code for custom_url_rewrite_inbound()'),
'#description' => t('The available variables are %variables.', array(
'%variables' => '&$result, $path, $path_language',
)),
'#default_value' => variable_get('url_alter_inbound', ''),
'#element_validate' => array(
'url_alter_validate_php_element',
),
'#url_alter_variables' => "\$result = \$path = '';\n\$path_language = 'en';\n",
);
$form['url_alter_outbound'] = array(
'#type' => 'textarea',
'#title' => t('PHP code for custom_url_rewrite_outbound()'),
'#description' => t('The available variables are %variables.', array(
'%variables' => '&$path, &$options, $original_path',
)),
'#default_value' => variable_get('url_alter_outbound', ''),
'#element_validate' => array(
'url_alter_validate_php_element',
),
'#url_alter_variables' => "\$path = \$original_path = '';\n\$options = array();\n",
);
return system_settings_form($form);
}