You are here

function panelizer_allowed_content_page in Panelizer 7.3

Same name and namespace in other branches
  1. 6 includes/admin.inc \panelizer_allowed_content_page()
  2. 7 includes/admin.inc \panelizer_allowed_content_page()
  3. 7.2 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 198
Contains administrative forms and settings.

Code

function panelizer_allowed_content_page($handler, $bundle) {

  // Old URLs would include a view mode, but allowed content does not
  // change for view modes, so make that version of the page not found.
  if (strpos($bundle, '.') !== FALSE) {
    return MENU_NOT_FOUND;
  }
  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);
}