function notifications_forms in Notifications 7
Same name and namespace in other branches
- 6.4 notifications.module \notifications_forms()
Implementation of hook_forms()
File
- ./
notifications.module, line 1251 - Notifications module
Code
function notifications_forms($form_id, $args) {
if (strpos($form_id, 'notifications_subscription') === 0) {
foreach (array(
'view',
'edit',
'delete',
'add',
'subscribe',
'unsubscribe',
) as $op) {
$forms['notifications_subscription_' . $op . '_form'] = array(
'callback' => 'notifications_subscription_form',
'callback arguments' => array(
$op,
),
);
}
return $forms;
}
}