function notifications_ui_install in Notifications 6.2
Same name and namespace in other branches
- 6.3 notifications_ui/notifications_ui.install \notifications_ui_install()
Implementation of hook_install()
Set up some variables so basic options are enabled out of the box
File
- notifications_ui/
notifications_ui.install, line 8
Code
function notifications_ui_install() {
variable_set('notifications_ui_user', array(
'page' => 'page',
'create' => 'create',
));
variable_set('notifications_ui_node', array(
'links' => 'links',
'teaserlinks' => 'teaserlinks',
'block' => 'block',
));
variable_set('notifications_ui_account_options', array(
'links' => 'links',
'block' => 'block',
));
// The most common options for notifications_content: thread, nodetype, author
variable_set('notifications_ui_types', array(
'thread' => 'thread',
'nodetype' => 'nodetype',
'author' => 'author',
));
}