Skip to content

Tag «is drupal an ecm or cms»

Change Allowed Value in list in Drupal 7

<?php /** * Implements hook_permission(). */ function dynallowed_permission() { return array( ‘administer dynallowed’ => array( ‘title’ => t(‘Alter Field List Allowed Values Function’), ‘description’ => t(‘This give field administrators access to alter the options list source for fields.’), ), ); } function dynallowed_form_field_ui_field_settings_form_alter(&$form, &$form_state){ dynallowed_form_field_ui_field_edit_form_alter($form, $form_state); } function dynallowed_form_field_ui_field_edit_form_alter(&$form, &$form_state) { if (user_access(‘administer dynallowed’)) { …