You are here

function glossary_user_XXX in Glossary 7

Implements hook_user_XXX().

File

./glossary.module, line 347
Glossary terms will be automatically marked with links to their descriptions.

Code

function glossary_user_XXX($edit, $account) {

  // Note: this requires a setting. Do we also need to clear cache if selected?
  if (variable_get('glossary_disable_indicator', FALSE)) {
    $form['content_glossary'] = array(
      '#type' => 'fieldset',
      '#title' => t('Glossary Indicators'),
    );
    $form['content_glossary']['glossary_disable_indicator'] = array(
      '#type' => 'checkbox',
      '#title' => t('Disable Glossary indicators'),
      '#return_value' => 1,
      '#default_value' => $user->glossary_disable_indicator,
      '#description' => t('Check this box to disable the display of Glossary indicators.'),
    );
    return $form;
  }
}