You are here

function joomla_myblog_form_joomla_admin_settings_alter in Joomla to Drupal 6

Same name and namespace in other branches
  1. 7.2 joomla_myblog.module \joomla_myblog_form_joomla_admin_settings_alter()
  2. 7 joomla_myblog.module \joomla_myblog_form_joomla_admin_settings_alter()

File

./joomla_myblog.module, line 197

Code

function joomla_myblog_form_joomla_admin_settings_alter(&$form, &$form_state) {
  $form['joomla_myblog'] = array(
    '#type' => 'fieldset',
    '#weight' => -5,
    '#title' => t('MyBlog settings'),
    '#collapsible' => TRUE,
    '#collapsed' => FALSE,
  );
  $vocabularies = array(
    0 => '---',
  );
  foreach (taxonomy_get_vocabularies() as $vocabulary) {
    $vocabularies[$vocabulary->vid] = $vocabulary->name;
  }
  $form['joomla_myblog']['joomla_myblog_vocabulary'] = array(
    '#type' => 'select',
    '#title' => t('Vocabulary for MyBlog tags'),
    '#description' => t('Select the vocabulary in which to place MyBlog tags.  If not set, a vocabulary named <em>MyBlog</em> will be created.'),
    '#options' => $vocabularies,
    '#default_value' => variable_get('joomla_myblog_vocabulary', 0),
  );
}