function total_control_default_page_manager_pages in Total Control Admin Dashboard 7.2
Implements hook_default_page_manager_pages()
File
Code
function total_control_default_page_manager_pages() {
// Begin exported panel.
$page = new stdClass();
$page->disabled = FALSE;
/* Edit this to true to make a default page disabled initially */
$page->api_version = 1;
$page->name = 'dashboard';
$page->task = 'page';
$page->admin_title = 'Total Control administrative dashboard';
$page->admin_description = '';
$page->path = 'admin/dashboard';
$page->access = array(
'plugins' => array(
0 => array(
'name' => 'perm',
'settings' => array(
'perm' => 'have total control',
),
'context' => 'logged-in-user',
'not' => FALSE,
),
),
'logic' => 'and',
);
$page->menu = array(
'type' => 'normal',
'title' => 'Dashboard',
'name' => 'management',
'weight' => '-100',
'parent' => array(
'type' => 'normal',
'title' => 'Dashboard',
'name' => 'management',
'weight' => '0',
),
);
$page->arguments = array();
$page->conf = array(
'admin_paths' => TRUE,
);
$page->default_handlers = array();
$handler = new stdClass();
$handler->disabled = FALSE;
/* Edit this to true to make a default handler disabled initially */
$handler->api_version = 1;
$handler->name = 'page_dashboard_panel_context';
$handler->task = 'page';
$handler->subtask = 'dashboard';
$handler->handler = 'panel_context';
$handler->weight = 0;
$handler->conf = array(
'title' => 'Admin Dashboard',
'no_blocks' => 0,
'pipeline' => 'standard',
'css_id' => '',
'css' => '',
'contexts' => array(),
'relationships' => array(),
'body_classes_to_remove' => '',
'body_classes_to_add' => '',
);
$display = new panels_display();
$display->layout = 'twocol_stacked';
$display->layout_settings = array();
$display->panel_settings = array(
'style_settings' => array(
'default' => NULL,
'middle' => NULL,
'top' => NULL,
'left' => NULL,
'right' => NULL,
'bottom' => NULL,
),
);
$display->cache = array();
$display->title = 'Dashboard';
$display->content = array();
$display->panels = array();
$pane = new stdClass();
$pane->pid = 'new-1';
$pane->panel = 'left';
$pane->type = 'create';
$pane->subtype = 'create';
$pane->shown = TRUE;
$pane->access = array();
$pane->configuration = array(
'types' => array(
'article' => 'article',
'project' => 'project',
'page' => 0,
),
'override_title' => 0,
'override_title_text' => '',
);
$pane->cache = array();
$pane->style = array(
'settings' => NULL,
);
$pane->css = array();
$pane->extras = array();
$pane->position = 0;
$pane->locks = '';
$display->content['new-1'] = $pane;
$display->panels['left'][0] = 'new-1';
$pane = new stdClass();
$pane->pid = 'new-2';
$pane->panel = 'left';
$pane->type = 'overview_content';
$pane->subtype = 'overview_content';
$pane->shown = TRUE;
$pane->access = array();
$pane->configuration = array(
'types' => array(
'article' => 'article',
'page' => 'page',
'project' => 'project',
'video' => 'video',
),
'comments' => array(
'article' => 'article',
'page' => 0,
'project' => 0,
'video' => 0,
),
'spam' => 0,
);
$pane->cache = array();
$pane->style = array(
'settings' => NULL,
);
$pane->css = array();
$pane->extras = array();
$pane->position = 1;
$pane->locks = '';
$display->content['new-2'] = $pane;
$display->panels['left'][1] = 'new-2';
$pane = new stdClass();
$pane->pid = 'new-3';
$pane->panel = 'left';
$pane->type = 'views_panes';
$pane->subtype = 'control_users_panes-pane_tc_new_users';
$pane->shown = TRUE;
$pane->access = array();
$pane->configuration = array(
'items_per_page' => '10',
);
$pane->cache = array();
$pane->style = array(
'settings' => NULL,
);
$pane->css = array();
$pane->extras = array();
$pane->position = 2;
$pane->locks = array();
$display->content['new-3'] = $pane;
$display->panels['left'][2] = 'new-3';
$pane = new stdClass();
$pane->pid = 'new-4';
$pane->panel = 'left';
$pane->type = 'views_panes';
$pane->subtype = 'control_content_panes-pane_tc_new';
$pane->shown = TRUE;
$pane->access = array();
$pane->configuration = array(
'items_per_page' => '10',
);
$pane->cache = array();
$pane->style = array(
'settings' => NULL,
);
$pane->css = array();
$pane->extras = array();
$pane->position = 3;
$pane->locks = '';
$display->content['new-4'] = $pane;
$display->panels['left'][3] = 'new-4';
$pane = new stdClass();
$pane->pid = 'new-5';
$pane->panel = 'right';
$pane->type = 'menus';
$pane->subtype = 'menus';
$pane->shown = TRUE;
$pane->access = array();
$pane->configuration = array(
'item1' => NULL,
'item2' => NULL,
'override_title' => 0,
'override_title_text' => '',
'menus' => array(
'main-menu' => 'main-menu',
'navigation' => 'navigation',
'devel' => 0,
'management' => 0,
'user-menu' => 0,
),
);
$pane->cache = array();
$pane->style = array(
'settings' => NULL,
);
$pane->css = array();
$pane->extras = array();
$pane->position = 0;
$pane->locks = '';
$display->content['new-5'] = $pane;
$display->panels['right'][0] = 'new-5';
$pane = new stdClass();
$pane->pid = 'new-6';
$pane->panel = 'right';
$pane->type = 'node_types';
$pane->subtype = 'node_types';
$pane->shown = TRUE;
$pane->access = array();
$pane->configuration = array(
'types' => array(
'article' => 'article',
'page' => 'page',
'project' => 'project',
'video' => 'video',
),
'override_title' => 0,
'override_title_text' => '',
);
$pane->cache = array();
$pane->style = array(
'settings' => NULL,
);
$pane->css = array();
$pane->extras = array();
$pane->position = 1;
$pane->locks = '';
$display->content['new-6'] = $pane;
$display->panels['right'][1] = 'new-6';
$pane = new stdClass();
$pane->pid = 'new-7';
$pane->panel = 'right';
$pane->type = 'taxonomy';
$pane->subtype = 'taxonomy';
$pane->shown = TRUE;
$pane->access = array();
$pane->configuration = array(
'vids' => array(
0 => '2',
1 => '1',
),
'override_title' => 0,
'override_title_text' => '',
);
$pane->cache = array();
$pane->style = array(
'settings' => NULL,
);
$pane->css = array();
$pane->extras = array();
$pane->position = 2;
$pane->locks = '';
$display->content['new-7'] = $pane;
$display->panels['right'][2] = 'new-7';
$pane = new stdClass();
$pane->pid = 'new-8';
$pane->panel = 'right';
$pane->type = 'panel_pages';
$pane->subtype = 'panel_pages';
$pane->shown = TRUE;
$pane->access = array();
$pane->configuration = array(
'item1' => NULL,
'item2' => NULL,
'override_title' => 0,
'override_title_text' => '',
);
$pane->cache = array();
$pane->style = array(
'settings' => NULL,
);
$pane->css = array();
$pane->extras = array();
$pane->position = 3;
$pane->locks = '';
$display->content['new-8'] = $pane;
$display->panels['right'][3] = 'new-8';
$pane = new stdClass();
$pane->pid = 'new-9';
$pane->panel = 'top';
$pane->type = 'welcome';
$pane->subtype = 'welcome';
$pane->shown = TRUE;
$pane->access = array();
$pane->configuration = array();
$pane->cache = array();
$pane->style = array(
'settings' => NULL,
);
$pane->css = array();
$pane->extras = array();
$pane->position = 0;
$pane->locks = '';
$display->content['new-9'] = $pane;
$display->panels['top'][0] = 'new-9';
$display->hide_title = PANELS_TITLE_FIXED;
$display->title_pane = '0';
$handler->conf['display'] = $display;
$page->default_handlers[$handler->name] = $handler;
// End exported panel.
$pages['dashboard'] = $page;
$page = new stdClass();
$page->disabled = FALSE;
/* Edit this to true to make a default page disabled initially */
$page->api_version = 1;
$page->name = 'dashboard_user_add';
$page->task = 'page';
$page->admin_title = 'Total Control: add user';
$page->admin_description = '';
$page->path = 'admin/dashboard/users/add';
$page->access = array(
'plugins' => array(
0 => array(
'name' => 'perm',
'settings' => array(
'perm' => 'administer users',
),
'context' => 'logged-in-user',
'not' => FALSE,
),
),
'logic' => 'and',
);
$page->menu = array(
'type' => 'action',
'title' => 'Add user',
'name' => 'navigation',
'weight' => '0',
'parent' => array(
'type' => 'none',
'title' => '',
'name' => 'navigation',
'weight' => '0',
),
);
$page->arguments = array();
$page->conf = array(
'admin_paths' => TRUE,
);
$page->default_handlers = array();
$handler = new stdClass();
$handler->disabled = FALSE;
/* Edit this to true to make a default handler disabled initially */
$handler->api_version = 1;
$handler->name = 'page_dashboard_user_add_menu_context';
$handler->task = 'page';
$handler->subtask = 'dashboard_user_add';
$handler->handler = 'menu_context';
$handler->weight = 0;
$handler->conf = array(
'title' => 'Context Admin',
'no_blocks' => FALSE,
'css_id' => '',
'css' => '',
'contexts' => array(),
'relationships' => array(),
'context_admin_options' => 'user_create_menu',
'context_admin_user_roles' => array(
2 => '2',
),
'context_admin_user_roles_alter' => 0,
'context_admin_user_status' => '1',
'context_admin_user_status_alter' => 0,
'context_admin_user_notify' => 1,
);
$page->default_handlers[$handler->name] = $handler;
$pages['dashboard_user_add'] = $page;
return $pages;
}