本文整理匯總了PHP中ctools_export_ui::edit_save_form方法的典型用法代碼示例。如果您正苦於以下問題:PHP ctools_export_ui::edit_save_form方法的具體用法?PHP ctools_export_ui::edit_save_form怎麽用?PHP ctools_export_ui::edit_save_form使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ctools_export_ui
的用法示例。
在下文中一共展示了ctools_export_ui::edit_save_form方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
/**
* Overrides ctools_export_ui::edit_save_form().
*
* Clear menu cache in case the SPARQL endpoint path was modified.
*/
function edit_save_form($form_state)
{
parent::edit_save_form($form_state);
if (!empty($form_state['plugin']['schema']) && $form_state['plugin']['schema'] == 'arc2_store_settings') {
menu_rebuild();
}
}
示例2:
/**
* Ensure menu gets rebuild after saving a new type.
*/
function edit_save_form($form_state)
{
parent::edit_save_form($form_state);
entity_info_cache_clear();
menu_rebuild();
if ($form_state['op'] === 'save_continue') {
$this->plugin['redirect']['save_continue'] = $this->field_admin_path($form_state['values']['name'], 'fields');
}
}
示例3:
/**
* Called to save the final product from the edit form.
*/
function edit_save_form($form_state)
{
parent::edit_save_form($form_state);
// Entity bundle has been saved.
$op = $form_state['form type'] == 'add' ? 'insert' : 'update';
field_attach_insert('heartbeat_activity', $form_state['item']);
module_invoke_all("entity_{$op}", $form_state['item'], 'heartbeat_activity');
field_info_cache_clear();
}