function _ctools_custom_content_type_edit_save
1 call to _ctools_custom_content_type_edit_save()
- ctools_custom_content_type_edit_form_submit in plugins/
content_types/ custom/ custom.inc - The submit form stores the data in $conf.
File
-
plugins/
content_types/ custom/ custom.inc, line 397
Code
function _ctools_custom_content_type_edit_save(&$content, $form_state) {
// Apply updates to the content object.
$content->category = $form_state['values']['category'];
$content->admin_title = $form_state['values']['admin_title'];
$content->admin_description = $form_state['values']['admin_description'];
foreach (array_keys($form_state['plugin']['defaults']) as $key) {
if (isset($form_state['values'][$key])) {
$content->settings[$key] = $form_state['values'][$key];
}
}
ctools_export_crud_save('ctools_custom_content', $content);
}