5 * Install the panels tables
7 function panels_page_schema() {
8 return panels_page_schema_1();
12 * Schema version 1 for Panels in D6.
14 function panels_page_schema_1() {
17 $schema['panels_page'] = array(
18 'description' => t('Holds the configuration data for panels pages.'),
41 'storage_type' => 'implode',
47 'load_flags' => array(
48 'description' => t('Bitval-as-integer metadata used in determining panel_page behavior at runtime.'),
65 'storage_type' => 'serialize',
70 'storage_type' => 'serialize',
75 'storage_type' => 'serialize',
77 'relationships' => array(
80 'storage_type' => 'serialize',
87 'switcher_options' => array(
91 'storage_type' => 'serialize',
93 'switcher_name' => array(
98 'switcher_type' => array(
113 'menu_tab_weight' => array(
117 'menu_title' => array(
121 'menu_tab_default' => array(
125 'menu_tab_default_parent_type' => array(
129 'menu_parent_title' => array(
133 'menu_parent_tab_weight' => array(
138 'primary key' => array('pid'),
139 'unique keys' => array(
140 'name' => array('name'),
143 'path_idx' => array('path'),
144 'did_idx' => array('did'),
147 // Straight copy from the menu schema; duping it for storage purposes.
148 $schema['panels_page_router_store'] = array(
149 'description' => t('Maps paths to various callbacks (access, page and title)'),
152 'description' => t('The Drupal path this entry describes.'),
158 'load_functions' => array(
159 'description' => t('A serialized array of function names (like node_load) to be called to load an object corresponding to a part of the current path.'),
165 'to_arg_functions' => array(
166 'description' => t('A serialized array of function names (like user_uid_optional_to_arg) to be called to replace a part of the router path with another string.'),
172 'access_callback' => array(
173 'description' => t('The callback which determines the access to this router path. Defaults to user_access.'),
179 'access_arguments' => array(
180 'description' => t('A serialized array of arguments for the access callback.'),
184 'page_callback' => array(
185 'description' => t('The name of the function that renders the page.'),
191 'page_arguments' => array(
192 'description' => t('A serialized array of arguments for the page callback.'),
197 'description' => t('A numeric representation of how specific the path is.'),
202 'number_parts' => array(
203 'description' => t('Number of parts in this router path.'),
209 'tab_parent' => array(
210 'description' => t('Only for local tasks (tabs) - the router path of the parent page (which may also be a local task).'),
217 'description' => t('Router path of the closest non-tab parent page. For pages that are not local tasks, this will be the same as the path.'),
224 'description' => t('The title for the current page, or the title for the tab if this is a local task.'),
230 'title_callback' => array(
231 'description' => t('A function which will alter the title. Defaults to t()'),
237 'title_arguments' => array(
238 'description' => t('A serialized array of arguments for the title callback. If empty, the title will be used as the sole argument for the title callback.'),
245 'description' => t('Numeric representation of the type of the menu item, like MENU_LOCAL_TASK.'),
250 'block_callback' => array(
251 'description' => t('Name of a function used to render the block on the system administration page for this item.'),
257 'description' => array(
258 'description' => t('A description of this item.'),
263 'description' => t('The position of the block (left or right) on the system administration page for this item.'),
270 'description' => t('Weight of the element. Lighter weights are higher up, heavier weights go down.'),
276 'description' => t('The file to include for this element, usually the page callback function lives in this file.'),
282 'fit_idx' => array('fit'),
283 'number_parts_idx' => array('number_parts'),
285 'primary key' => array('path'),
290 function panels_page_install() {
291 db_query("UPDATE {system} SET weight = 15 WHERE name = 'panels_page'");
292 drupal_install_schema('panels_page');
295 function panels_page_uninstall() {
296 drupal_uninstall_schema('panels_page');