You are here

function views_content_menu in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 views_content/views_content.module \views_content_menu()

Implements hook_menu().

File

views_content/views_content.module, line 13
Provides views as panels content, configurable by the administrator. Each view provided as panel content must be configured in advance, but once configured, building panels with views is a little bit simpler.

Code

function views_content_menu() {
  $items = array();
  if (!module_exists('panels')) {
    $items['admin/config/content-views'] = array(
      'title' => 'Views panes',
      'access arguments' => array(
        'administer views content plugin',
      ),
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'views_content_admin_page',
      ),
      'description' => 'Configure Views to be used as CTools content.',
      'type' => MENU_NORMAL_ITEM,
    );
  }
  return $items;
}