function _config_perms_install_data in Custom Permissions 6.2
Same name and namespace in other branches
- 7.2 config_perms.install \_config_perms_install_data()
2 calls to _config_perms_install_data()
- config_perms_install in ./
config_perms.install - Implementation of hook_install().
- config_perms_update_6200 in ./
config_perms.install
File
- ./
config_perms.install, line 90 - Installation file
Code
function _config_perms_install_data() {
$perms = array(
'administer administration theme' => array(
'admin/settings/admin',
),
'administer clean-urls' => array(
'admin/settings/clean-urls',
),
'administer date-time' => array(
'admin/settings/date-time',
'admin/settings/date-time/lookup',
),
'administer error reporting' => array(
'admin/settings/error-reporting',
),
'administer file system' => array(
'admin/settings/file-system',
),
'administer performance' => array(
'admin/settings/performance',
),
'administer site information' => array(
'admin/settings/site-information',
),
'administer site maintenance' => array(
'admin/settings/site-maintenance',
),
'administer modules' => array(
'admin/build/modules',
'admin/build/modules/list/confirm',
'admin/build/modules/uninstall',
'admin/build/modules/uninstall/confirm',
),
'administer user profile fields' => array(
'admin/user/profile',
),
'administer content node settings' => array(
'admin/content/node-settings',
),
'display site building menu' => array(
'admin/build',
),
'display site configuration menu' => array(
'admin/settings',
),
);
foreach ($perms as $name => $paths) {
db_query("INSERT INTO {config_perms} (machine_name, status, name, path) VALUES ('%s', %d, '%s', %b)", strtolower(preg_replace('/[^a-zA-Z0-9_]+/', '_', $name)), 1, $name, serialize($paths));
}
}