function addthis_form_alter in AddThis 6.2
Implementation of hook_form_alter().
File
- ./
addthis.module, line 72 - Stand alone module file to handle AddThis button integration
Code
function addthis_form_alter(&$form, $form_state, $form_id) {
if ($form_id == 'node_type_form' && isset($form['identity']['type'])) {
$form['workflow']['addthis_nodetype'] = array(
'#type' => 'checkbox',
'#title' => t('Show AddThis button on this type of node'),
'#default_value' => variable_get('addthis_nodetype_' . $form['#node_type']->type, 1),
'#description' => t('Select whether the AddThis button should be shown or not on this type of node.'),
);
}
}