You are here

function panelizer_allowed_content_page in Panelizer 7.2

Same name and namespace in other branches
  1. 6 includes/admin.inc \panelizer_allowed_content_page()
  2. 7.3 includes/admin.inc \panelizer_allowed_content_page()
  3. 7 includes/admin.inc \panelizer_allowed_content_page()

Page to configure what content is available for a given node type.

2 string references to 'panelizer_allowed_content_page'
PanelizerEntityDefault::add_admin_links in plugins/entity/PanelizerEntityDefault.class.php
Helper function to add administrative menu items into an entity's already existing structure.
panelizer_admin_hook_menu in includes/admin.inc
Delegated hook_menu for admin

File

includes/admin.inc, line 210
Contains administrative forms and settings.

Code

function panelizer_allowed_content_page($handler, $bundle) {
  if (is_string($handler)) {
    $handler = panelizer_entity_plugin_get_handler($handler);
  }
  if (!$handler
    ->is_panelized($bundle)) {
    return MENU_NOT_FOUND;
  }
  ctools_include('common', 'panels');
  return drupal_get_form('panels_common_settings', 'panelizer_' . $handler->entity_type . ':' . $bundle);
}