function easy_social_admin_wizard in Easy Social 7.2
Form callback. Wizard for quickly adding Easy Social to Content Types.
See also
1 string reference to 'easy_social_admin_wizard'
- easy_social_menu in ./
easy_social.module - Implements hook_menu().
File
- includes/
easy_social.admin.inc, line 659 - Easy Social admin settings.
Code
function easy_social_admin_wizard() {
$form = array();
$node_types = node_type_get_types();
$form['easy_social_types'] = array(
'#type' => 'fieldset',
'#title' => t('Content Types'),
'#collapsible' => FALSE,
'#description' => t('Enable Easy Social for the following content types:'),
'#tree' => TRUE,
);
foreach ($node_types as $type => $typeobj) {
$form['easy_social_types']["easy_social_{$type}_enable"] = array(
'#title' => $typeobj->name,
'#type' => 'checkbox',
'#default_value' => variable_get_value("easy_social_{$type}_enable"),
);
}
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit'),
);
return $form;
}