本文整理汇总了PHP中ctools_export_ui::delete_form_submit方法的典型用法代码示例。如果您正苦于以下问题:PHP ctools_export_ui::delete_form_submit方法的具体用法?PHP ctools_export_ui::delete_form_submit怎么用?PHP ctools_export_ui::delete_form_submit使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ctools_export_ui
的用法示例。
在下文中一共展示了ctools_export_ui::delete_form_submit方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
/**
* Remove fields associated to bundles that are being deleted.
*/
function delete_form_submit(&$form_state)
{
parent::delete_form_submit($form_state);
if ($form_state['op'] == 'delete') {
field_attach_delete_bundle('fieldable_panels_pane', $form_state['item']->name);
entity_info_cache_clear();
}
}
示例2:
/**
* Deletes exportable items from the database.
*/
function delete_form_submit(&$form_state)
{
$item = $form_state['item'];
$layer = openlayers_layer_type_load($item->data['layer_type']);
if (method_exists($layer, 'delete')) {
$layer->delete($item);
}
parent::delete_form_submit($form_state);
}
示例3:
/**
* Overrides ctools_export_ui::delete_form_submit().
*/
function delete_form_submit(&$form_state)
{
// Clear the oEmbed provider cache.
oembed_providers_reset();
return parent::delete_form_submit($form_state);
}
示例4:
/**
* Remove translations.
*/
function delete_form_submit(&$form_state)
{
// Cleanup translated strings.
if (function_exists('i18n_string_remove')) {
$name = $this->_create_string_key($form_state['item']->name, 'help');
i18n_string_remove($name);
}
parent::delete_form_submit($form_state);
}
示例5:
function delete_form_submit(&$form_state)
{
parent::delete_form_submit($form_state);
// Also remove from object cache to keep things tidy.
$cache_key = 'edit-' . $form_state['item']->name;
panels_frame_cache_clear($form_state['item']->plugin, $cache_key);
}