| 16 |
* were marked as 'required' by the site admin will always be usable by the group members and |
* were marked as 'required' by the site admin will always be usable by the group members and |
| 17 |
* cannot be deactivated by the group owner.</p> |
* cannot be deactivated by the group owner.</p> |
| 18 |
* |
* |
| 19 |
* @version $Id: og_content_type_admin.module,v 1.15.2.3 2008/10/15 11:14:40 paulbooker Exp $; |
* @version $Id: og_content_type_admin.module,v 1.15.2.6 2008/11/28 00:35:08 paulbooker Exp $; |
| 20 |
* @package OG_CTA |
* @package OG_CTA |
| 21 |
* @category NeighborForge |
* @category NeighborForge |
| 22 |
* @author Ryan Constantine |
* @author Ryan Constantine |
| 68 |
} // function og_content_type_admin_help() |
} // function og_content_type_admin_help() |
| 69 |
|
|
| 70 |
/** |
/** |
| 71 |
|
* Implementation of hook_init(). |
| 72 |
|
*/ |
| 73 |
|
function og_content_type_admin_init() { |
| 74 |
|
drupal_flush_all_caches(); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
|
| 78 |
|
/** |
| 79 |
* Implementation of hook_perm |
* Implementation of hook_perm |
| 80 |
* |
* |
| 81 |
* Valid permissions for this module |
* Valid permissions for this module |
| 85 |
return array('administer og content types'); |
return array('administer og content types'); |
| 86 |
} // function og_content_type_admin_perm() |
} // function og_content_type_admin_perm() |
| 87 |
|
|
|
|
|
|
function og_content_type_admin_flush_all_caches() { |
|
|
drupal_flush_all_caches(); |
|
|
} |
|
|
|
|
| 88 |
/** |
/** |
| 89 |
* Implementation of hook_menu |
* Implementation of hook_menu |
| 90 |
* |
* |
| 249 |
drupal_set_message(t('The group has been added.')); |
drupal_set_message(t('The group has been added.')); |
| 250 |
} |
} |
| 251 |
$form_state['redirect'] = 'admin/og/og_content_types'; |
$form_state['redirect'] = 'admin/og/og_content_types'; |
|
og_content_type_admin_flush_all_caches(); |
|
| 252 |
} //function og_content_type_admin_main_submit() |
} //function og_content_type_admin_main_submit() |
| 253 |
|
|
| 254 |
/** |
/** |
| 323 |
watchdog('content', t('og_content_type_admin: deleted %gid.', array('%gid' => $form_values['name']))); |
watchdog('content', t('og_content_type_admin: deleted %gid.', array('%gid' => $form_values['name']))); |
| 324 |
} |
} |
| 325 |
$form_state['redirect'] = 'admin/og/og_content_types'; |
$form_state['redirect'] = 'admin/og/og_content_types'; |
|
og_content_type_admin_flush_all_caches(); |
|
| 326 |
} // function og_content_type_admin_confirm_delete_submit() |
} // function og_content_type_admin_confirm_delete_submit() |
| 327 |
|
|
| 328 |
/** |
/** |
| 535 |
else { |
else { |
| 536 |
drupal_set_message(t('The changes have been saved. The group owner must now activate content types for them to be used in that group.')); |
drupal_set_message(t('The changes have been saved. The group owner must now activate content types for them to be used in that group.')); |
| 537 |
} |
} |
|
og_content_type_admin_flush_all_caches(); |
|
| 538 |
} //function og_content_type_admin_admin_submit() |
} //function og_content_type_admin_admin_submit() |
| 539 |
|
|
| 540 |
/** |
/** |