You are here

function themekey_help_properties_form in ThemeKey 6.2

Same name and namespace in other branches
  1. 6.4 themekey_help.inc \themekey_help_properties_form()
  2. 6.3 themekey_help.inc \themekey_help_properties_form()
  3. 7.3 themekey_help.inc \themekey_help_properties_form()
  4. 7 themekey_help.inc \themekey_help_properties_form()
  5. 7.2 themekey_help.inc \themekey_help_properties_form()

Uses drupal's form builder to format ThemeKey's help properties

See also

themekey_help()

1 string reference to 'themekey_help_properties_form'
themekey_help in ./themekey.module
Implements hook_help().

File

./themekey_help.inc, line 137

Code

function themekey_help_properties_form($collapsed = TRUE) {
  $attributes = variable_get('themekey_attributes', array());
  $form['themekey_help_properties'] = array(
    '#type' => 'fieldset',
    '#title' => t('Properties explained'),
    '#collapsible' => TRUE,
    '#collapsed' => $collapsed,
  );
  foreach ($attributes as $property => $attribute) {
    $form['themekey_help_properties'][$property] = array(
      '#type' => 'fieldset',
      '#title' => $property,
      '#collapsible' => TRUE,
      '#collapsed' => $collapsed,
    );
    $form['themekey_help_properties'][$property]['item'] = array(
      '#type' => 'item',
      '#value' => $attribute['description'],
    );
  }
  return $form;
}