本文整理汇总了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();
}