You are here

function asset_bonus_menu in Asset 6

Same name in this branch
  1. 6 asset_bonus/asset_bonus.module \asset_bonus_menu()
  2. 6 contrib/asset_bonus/asset_bonus.module \asset_bonus_menu()
Same name and namespace in other branches
  1. 5.2 contrib/asset_bonus/asset_bonus.module \asset_bonus_menu()
  2. 5 asset_bonus/asset_bonus.module \asset_bonus_menu()

File

contrib/asset_bonus/asset_bonus.module, line 25

Code

function asset_bonus_menu($may_cache) {
  if (!$may_cache) {
    $items[] = array(
      'path' => 'admin/settings/asset/asset_bonus',
      'title' => t('Asset Bonus'),
      'access' => user_access('administer assets'),
      'callback' => 'asset_bonus_admin_overview',
      'type' => MENU_LOCAL_TASK,
      'weight' => 1,
    );
    $items[] = array(
      'path' => 'admin/settings/asset/asset_bonus/overview',
      'type' => MENU_DEFAULT_LOCAL_TASK,
      'title' => t('Overview'),
      'weight' => -10,
      'access' => user_access('administer assets'),
      'callback' => 'asset_bonus_admin_overview',
    );
    $items[] = array(
      'path' => 'admin/settings/asset/asset_bonus/mp3player',
      'type' => MENU_LOCAL_TASK,
      'title' => t('mp3 Player'),
      'access' => user_access('administer assets'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'asset_bonus_admin_mp3player',
      ),
    );
  }
  return $items;
}