| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 829 lines (29 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| panels_panel_context_tab_operation($handler, $contexts, $args) X-Ref |
| Provide the operation trail for the 'Edit panel' link. When editing the panel, go directly to the content tab. |
| panels_panel_context_get_display(&$handler) X-Ref |
| Get the display for a task handler. There are three methods that the display can be found. - In the database. $handler->conf['did'] will be set in this case, and $handler->conf['display'] won't be. - In $handler->conf['display'], with $handler->conf['did'] empty. This will be true for a default/imported task handler as well as a handler that has just been created but has not yet been saved. - in $handler->conf['display'] with $handler->conf['did' populated. This simply means that the display has been modified and is awaiting save. The modified one should always be used for editing purposes. - If none of the above is true, then a new display needs to be created for the handler and pla |
| panels_panel_context_render($handler, $base_contexts, $args, $test = TRUE) X-Ref |
| Check selection rules and, if passed, render the contexts. |
| panels_panel_context_save(&$handler, $update) X-Ref |
| Callback to allow the handler to react to being saved. When a handler with a display is saved, two things have to happen. First, we have to save the display so that it becomes a real display, not the fake one we started with. Second, we have to cache any CSS that the display is using. This CSS can get re-cached later if the file disappears, but it's imperative that we do it here to make sure that old, dirty CSS cache gets removed. |
| panels_panel_context_export(&$handler, $indent) X-Ref |
| Special handling for exporting a panel task handler. When a panel is exported, we need to export the display separately rather than just letting its object be unpacked, which does not work very well. |
| panels_panel_context_clone(&$handler) X-Ref |
| When a handler is cloned, we have to clone the display. |
| panels_panel_context_delete(&$handler) X-Ref |
| Callback to delete the display when a handler is deleted. |
| panels_panel_context_title($handler, $task, $subtask) X-Ref |
| Set up a title for the panel based upon the selection rules. |
| panels_panel_context_admin_summary($handler, $task, $subtask, $page, $show_title = TRUE) X-Ref |
| Provide a nice little summary of what's in a panel. The task handler manager provides a summary of a given handler in a collapsible div. This callback provides that. For a Panel, we provide a summary of the layout type and content on one side, and a summary of the contexts in use on the other. |
| panels_panel_context_edit_choose(&$form, &$form_state) X-Ref |
| Choose a layout for this panel. This is only called during 'add', when we know that there isn't a previous layout to choose from. a different, only slightly different variant is called to change a pre-existing layout. |
| panels_panel_context_edit_choose_validate(&$form, &$form_state) X-Ref |
| Validate that a layout was chosen. |
| panels_panel_context_edit_choose_submit(&$form, &$form_state) X-Ref |
| A layout has been selected, set it up. |
| panels_panel_context_edit_layout(&$form, &$form_state) X-Ref |
| Change the layout for this panel. This form is only used if a layout already exists and the user wants to change to a different one. The submit handler changes the next form to the move content form, which is 'hidden' so it won't be accessed directly. |
| panels_panel_context_edit_layout_validate(&$form, &$form_state) X-Ref |
| Validate that a layout was chosen. |
| panels_panel_context_edit_layout_submit(&$form, &$form_state) X-Ref |
| A layout has been selected, set it up. |
| panels_panel_context_edit_move(&$form, &$form_state) X-Ref |
| When a layout is changed, the user is given the opportunity to move content. |
| panels_panel_context_edit_content(&$form, &$form_state) X-Ref |
| Present the panels drag & drop editor to edit the display attached to the task handler. |
| panels_panel_context_edit_content_submit(&$form, &$form_state) X-Ref |
| No description |
| panels_panel_context_edit_settings(&$form, &$form_state) X-Ref |
| General settings for the panel |
| panels_panel_context_edit_settings_submit(&$form, &$form_state) X-Ref |
| Submit handler for general settings form. |
| panels_panel_context_edit_preview(&$form, &$form_state) X-Ref |
| Form to show a nice preview. |
| panels_panel_context_edit_preview_submit(&$form, &$form_state) X-Ref |
| Display a preview upon submit if arguments were needed. |
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |