function comment_notify_field_extra_fields in Comment Notify 7
Implements hook_field_extra_fields().
File
- ./
comment_notify.module, line 735 - This module provides comment follow-up e-mail notification for anonymous and registered users.
Code
function comment_notify_field_extra_fields() {
module_load_include('inc', 'comment_notify', 'comment_notify');
$extras = array();
foreach (comment_notify_variable_registry_get('node_types') as $node_type) {
if (isset($node_type)) {
$extras['comment']['comment_node_' . $node_type]['form']['comment_notify_settings'] = array(
'label' => t('Comment Notify settings'),
'description' => t('@node_type settings for Comment Notify', array(
'@node_type' => ucwords($node_type),
)),
'weight' => 1,
);
}
}
$extras['user']['user']['form']['comment_notify_settings'] = array(
'label' => t('Comment Notify settings'),
'description' => t('User settings for Comment Notify'),
'weight' => 4,
);
return $extras;
}