You are here

function lexicon_user in Lexicon 6

Implementation of hook_user().

File

./lexicon.module, line 437
Lexicon is used to create lists of terms and definitions to use on a website and optionally mark them in the content with an indicator.

Code

function lexicon_user($type, $edit, $user) {
  switch ($type) {
    case 'form':
      if (variable_get('lexicon_disable_indicator', FALSE)) {
        $form['content_lexicon'] = array(
          '#type' => 'fieldset',
          '#title' => t('Lexicon Indicators'),
        );
        $form['content_lexicon']['lexicon_disable_indicator'] = array(
          '#type' => 'checkbox',
          '#title' => t('Disable Lexicon indicators'),
          '#return_value' => 1,
          '#default_value' => $user->lexicon_disable_indicator,
          '#description' => t('Check this box to disable the display of Lexicon indicators.'),
        );
        return $form;
      }
      break;
  }
}