function boxes_menu

cis7 boxes.module boxes_menu()
cle7 boxes.module boxes_menu()
elmsmedia7 boxes.module boxes_menu()
icor7 boxes.module boxes_menu()
meedjum_blog7 boxes.module boxes_menu()
mooc7 boxes.module boxes_menu()

Implements hook_menu().

File

sites/all/modules/ulmus/boxes/boxes.module, line 12

Code

function boxes_menu() {
  $items = array();
  ctools_include('plugins');
  $plugins = ctools_get_plugins('boxes', 'plugins');
  foreach ($plugins as $key => $info) {
    if (isset($info['title'])) {
      $items['admin/structure/block/box-add/' . $key] = array(
        'title' => 'Add ' . strtolower($info['title']),
        'page callback' => 'drupal_get_form',
        'page arguments' => array('boxes_add_form', 4),
        'access arguments' => array('administer boxes'),
        'type' => MENU_LOCAL_ACTION,
        'file' => 'boxes.admin.inc',
      );
    }
  }
  $items['admin/structure/block/manage/boxes/%boxes_box/delete'] = array(
    'title' => 'Delete box',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('boxes_delete_form', 5),
    'access arguments' => array('administer boxes'),
    'type' => MENU_CALLBACK,
    'file' => 'boxes.admin.inc',
  );
  $items['admin/config/user-interface/boxes'] = array(
    'title' => 'Boxes',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('boxes_settings'),
    'access arguments' => array('administer boxes'),
    'file' => 'boxes.admin.inc',
  );
  return $items;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.