You are here

function menu_per_role_update_6001 in Menu Per Role 6

hook_update()

File

./menu_per_role.install, line 110
Initialize and clean up the Menu per role module.

Code

function menu_per_role_update_6001() {
  $ret = array();

  // already using new schema?
  if (db_column_exists('menu_per_role', 'hrids')) {
    return $ret;
  }

  // create new field
  db_add_field($ret, 'menu_per_role', 'hrids', array(
    'description' => t('The role identifiers separated by commas. Hide from those roles.'),
    'type' => 'text',
    'not null' => TRUE,
    'default' => '',
  ));
  return $ret;
}