You are here

function radioactivity_arbitrary_source_menu in Radioactivity 5

File

plugins/radioactivity_arbitrary_source.module, line 29

Code

function radioactivity_arbitrary_source_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/radioactivity/arbitrary_sources',
      'title' => t('Arbitrary sources'),
      'description' => t('Arbitrary sources configuration'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'radioactivity_arbitrary_source_admin_list',
      ),
      'access' => user_access(RADIOACTIVITY_PERM_ADMIN),
      'weight' => 20,
      'type' => MENU_LOCAL_TASK,
    );
    $items[] = array(
      'path' => 'admin/settings/radioactivity/arbitrary_source',
      'title' => t('Arbitrary source edit'),
      'description' => t('Edit arbitrary source'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'radioactivity_arbitrary_source_admin_source',
      ),
      'access' => user_access(RADIOACTIVITY_PERM_ADMIN),
      'type' => MENU_CALLBACK,
    );
    $items[] = array(
      'path' => 'admin/settings/radioactivity/arbitrary_source_delete',
      'title' => t('Confirm delete arbitrary source'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'radioactivity_arbitrary_source_admin_delete',
      ),
      'access' => user_access(RADIOACTIVITY_PERM_ADMIN),
      'type' => MENU_CALLBACK,
    );
  }
  return $items;
}