function cck_permission in Content Construction Kit (CCK) 7.3
Implementation of hook_perm().
File
- ./
cck.module, line 13 - Allows administrators to use php code snippets to define allowed values or default values. The snippets are stored in a database table and retrieved in callback functions.
Code
function cck_permission() {
return array(
// TODO : simplify machine name and update existing perms ?
'Use PHP input for field settings (dangerous - grant with care)' => array(
'title' => t('Use PHP input for field settings'),
'description' => t('Enter PHP code in the field for the field settings that allow it. Warning: Give to trusted roles only; this permission has security implications.'),
),
);
}