You are here

function system_variable_path_element in Variable 7

Same name and namespace in other branches
  1. 7.2 includes/system.variable.inc \system_variable_path_element()

Callback for path variable element

1 string reference to 'system_variable_path_element'
system_variable_type_info in includes/system.variable.inc
Implements hook_variable_type_info().

File

includes/system.variable.inc, line 363
Variable API module. Definition for Drupal core variables

Code

function system_variable_path_element($variable, $options) {
  $element = variable_form_element_default($variable, $options) + array(
    '#type' => 'textfield',
    '#size' => 40,
    '#field_prefix' => url(NULL, array(
      'absolute' => TRUE,
    )) . (variable_get('clean_url', 0) ? '' : '?q='),
  );
  return $element;
}