function views_content_views_panes_content_type_edit_form_submit in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 views_content/plugins/content_types/views_panes.inc \views_content_views_panes_content_type_edit_form_submit()
Store form values in $conf.
File
- views_content/
plugins/ content_types/ views_panes.inc, line 570 - Content type plugin to allow Views to be exposed as a display type, leaving most of the configuration on the view.
Code
function views_content_views_panes_content_type_edit_form_submit(&$form, &$form_state) {
// Copy everything from our defaults.
$keys = array(
'link_to_view',
'more_link',
'feed_icons',
'use_pager',
'pager_id',
'items_per_page',
'offset',
'path_override',
'path',
'arguments',
'fields_override',
'exposed',
);
foreach ($keys as $key) {
if (isset($form_state['values'][$key])) {
$form_state['conf'][$key] = $form_state['values'][$key];
}
}
}