Mailinglist
 All Data Structures Files Functions Variables Pages
mailinglist_members.install
Go to the documentation of this file.
1 <?php
11  $schema=array();
12  $lists = mailinglist_list_load_all();
13  foreach ($lists as $list) {
14  $list_schema = _mailinglist_members_list_schema($list);
15  $schema += $list_schema;
16  }
17  return $schema;
18 }
19 
30 }
31 
36  // Make sure all previous created lists have roles created.
39  $lists = mailinglist_list_load_all();
40  foreach ($lists as $list) {
41  $rolename = 'Mailingling List Subscriber ' . $list->admin_name;
42  if (!user_role_load_by_name($rolename)) {
43  $role = new stdClass();
44  $role->name = $rolename;
45  dpm($role, 'Make Role');
46  user_role_save($role);
47  }
48  }
49 }
50 
_mailinglist_members_list_schema(MailinglistListInterface $list)
Builds the schema needed by mailinglist_members for a specific list.
mailinglist_members_modules_enabled($modules)
Implements hook_modules_enabled().
mailinglist_members_enable()
function mailinglist_members_update_7000() { }
mailinglist_list_load_all($show_disabled=TRUE)
Load all mailinglists.
mailinglist_members_schema()
Implements hook_schema().