You are here

function cf_settings_menu in Common Functionality 7.2

Implements hook_menu().

Related topics

File

modules/cf_settings/cf_settings.module, line 134
Common Functionality - PHP INI module.

Code

function cf_settings_menu() {
  $items = array();
  $items['admin/reports/settings_registry'] = array(
    'title' => "Settings Registry",
    'description' => "View common functionality settings registry.",
    'page callback' => 'cf_settings_administer_variables',
    'file' => 'variables.admin.inc',
    'file path' => drupal_get_path('module', 'cf_settings') . '/pages',
    'access callback' => 'user_access',
    'access arguments' => array(
      'view cf settings registry',
    ),
  );
  $items['admin/reports/settings_registry/%'] = array(
    'title' => "Settings Registry",
    'description' => "View common functionality settings registry for a specific registry type.",
    'page callback' => 'cf_settings_administer_variables',
    'page arguments' => array(
      4,
    ),
    'file' => 'variables.admin.inc',
    'file path' => drupal_get_path('module', 'cf_settings') . '/pages',
    'access callback' => 'user_access',
    'access arguments' => array(
      'view cf settings registry',
    ),
  );
  return $items;
}