You are here

function _cctags_get_select_list in cctags 7

Same name and namespace in other branches
  1. 8 cctags.module \_cctags_get_select_list()
  2. 6 cctags.module \_cctags_get_select_list()
2 calls to _cctags_get_select_list()
cctags_block_configure in ./cctags.module
Implements hook_block_configure().
cctags_settings_item in ./cctags.admin.inc

File

./cctags.module, line 543

Code

function _cctags_get_select_list($type) {
  $list = array();
  switch ($type) {
    case 'numtags':
      $list = drupal_map_assoc(array(
        0,
        4,
        6,
        8,
        10,
        12,
        14,
        16,
        18,
        20,
        24,
        28,
        32,
        40,
        50,
        60,
        100,
        120,
        150,
        200,
      ));
      break;
    case 'level':
      $list = drupal_map_assoc(array(
        1,
        2,
        3,
        4,
        5,
        6,
        7,
        8,
        9,
        10,
      ));
      break;
    case 'amount_tags':
      $list = drupal_map_assoc(array(
        0,
        6,
        12,
        14,
        16,
        18,
        20,
        24,
        28,
        32,
        40,
        50,
        60,
        100,
        120,
        150,
        200,
        300,
        400,
        500,
        600,
        900,
        1400,
      ));
      break;
  }
  return $list;
}