forum::install::create_user_notification_types (private)
forum::install::create_user_notification_types
Defined in packages/forums/tcl/forums-install-procs.tcl
Create the Forum Notification types used to notify users of forum changes.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: # Entire forum set spec { contract_name "NotificationType" owner "forums" name "forums_forum_notif_type" pretty_name "forums_forum_notif_type" aliases { GetURL forum::notification::get_url ProcessReply forum::notification::process_reply } } set sc_impl_id [acs_sc::impl::new_from_spec -spec $spec] set type_id [notification::type::new -sc_impl_id $sc_impl_id -short_name "forums_forum_notif" -pretty_name "Forum Notification" -description "Notifications for Entire Forums"] # Enable the various intervals and delivery methods db_dml insert_intervals { insert into notification_types_intervals (type_id, interval_id) select :type_id, interval_id from notification_intervals where name in ('instant','hourly','daily') } db_dml insert_del_method { insert into notification_types_del_methods (type_id, delivery_method_id) select :type_id, delivery_method_id from notification_delivery_methods where short_name in ('email') } # Message set spec { contract_name "NotificationType" owner "forums" name "forums_message_notif_type" pretty_name "forums_message_notif_type" aliases { GetURL forum::notification::get_url ProcessReply forum::notification::process_reply } } set sc_impl_id [acs_sc::impl::new_from_spec -spec $spec] set type_id [notification::type::new -sc_impl_id $sc_impl_id -short_name "forums_message_notif" -pretty_name "Message Notification" -description "Notifications for Message Thread"] # Enable the various intervals and delivery methods db_dml insert_intervals { insert into notification_types_intervals (type_id, interval_id) select :type_id, interval_id from notification_intervals where name in ('instant','hourly','daily') } db_dml insert_del_method { insert into notification_types_del_methods (type_id, delivery_method_id) select :type_id, delivery_method_id from notification_delivery_methods where short_name in ('email') }XQL Not present: Generic, PostgreSQL, Oracle