本文整理匯總了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);
}