當前位置: 首頁>>代碼示例>>PHP>>正文


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怎麽用?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();
     }
 }
開發者ID:michael-wojcik,項目名稱:open_eggheads,代碼行數:11,代碼來源:fieldable_panels_pane.class.php

示例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);
 }
開發者ID:EarthTeam,項目名稱:earthteam.net,代碼行數:12,代碼來源:openlayers_layers_ui.class.php

示例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);
 }
開發者ID:Nov-Dev-Inf,項目名稱:commons,代碼行數:9,代碼來源:oembed_provider_ui.class.php

示例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);
 }
開發者ID:samknelson,項目名稱:grievance,代碼行數:12,代碼來源:custom_help_text_export_ui.class.php

示例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);
 }
開發者ID:anatolic,項目名稱:vintage,代碼行數:7,代碼來源:panels_frame_ui.class.php


注:本文中的ctools_export_ui::delete_form_submit方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。