function rrssb_form_node_type_form_alter in Ridiculously Responsive Social Sharing Buttons 7.2
Same name and namespace in other branches
- 8.2 rrssb.module \rrssb_form_node_type_form_alter()
- 7 rrssb.module \rrssb_form_node_type_form_alter()
Implements hook_form_FORM_ID_alter().
File
- ./
rrssb.module, line 682
Code
function rrssb_form_node_type_form_alter(&$form, &$form_state) {
$form['rrssb'] = array(
'#type' => 'fieldset',
'#title' => t('Ridiculously Responsive Social Share Buttons'),
'#collapsible' => TRUE,
'#group' => 'additional_settings',
'#weight' => 20,
'#attributes' => array(
'class' => array(
'rrssb-node-type-settings-form',
),
),
'#access' => user_access('administer nodes'),
'#attached' => array(
'js' => array(
drupal_get_path('module', 'rrssb') . '/rrssb.nodetype.js',
),
),
);
$form['rrssb']['show'] = array(
'#type' => 'checkbox',
'#title' => t('Show the social buttons?'),
'#default_value' => variable_get('rrssb_' . $form['#node_type']->type, 0),
);
$form['#submit'][] = 'rrssb_node_type_callback';
}