function content_theme_perm in Content Theme 6
Implementation of hook_perm().
File
- ./
content_theme.module, line 80 - This module allows to use different themes than the site default on content creating, editing, and viewing pages.
Code
function content_theme_perm() {
$perm = array();
foreach (node_get_types('names') as $type => $name) {
$perm[] = "select {$type} content editing theme";
$perm[] = "select {$type} content viewing theme";
}
$perm[] = 'administer content theme';
return $perm;
}