本文整理汇总了PHP中ctools_export_ui::edit_execute_form_standard方法的典型用法代码示例。如果您正苦于以下问题:PHP ctools_export_ui::edit_execute_form_standard方法的具体用法?PHP ctools_export_ui::edit_execute_form_standard怎么用?PHP ctools_export_ui::edit_execute_form_standard使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ctools_export_ui
的用法示例。
在下文中一共展示了ctools_export_ui::edit_execute_form_standard方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: list
function edit_execute_form_standard(&$form_state)
{
if ($form_state['form type'] == 'clone') {
list($x, $y, $name) = explode(':', $form_state['original name']);
$form_state['item']->title = t('Clone of') . ' ' . $form_state['item']->title;
$form_state['item']->name = 'clone_of_' . $name;
} else {
if ($form_state['op'] == 'add') {
$form_state['item']->panelizer_type = $this->entity_handler->entity_type;
$form_state['item']->panelizer_key = $this->entity_bundle;
$form_state['item']->view_mode = $this->entity_view_mode;
$form_state['item']->display = $this->entity_handler->get_default_display();
}
}
return parent::edit_execute_form_standard($form_state);
}
示例2: t
function edit_execute_form_standard(&$form_state)
{
if ($form_state['form type'] == 'clone') {
$form_state['item']->title = t('Clone of') . ' ' . $form_state['item']->title;
$form_state['item']->name = '';
} else {
if ($form_state['op'] == 'add') {
$form_state['item']->panelizer_type = $this->entity_handler->entity_type;
$form_state['item']->panelizer_key = $this->entity_bundle;
$form_state['item']->view_mode = $this->entity_view_mode;
$form_state['item']->display = $this->entity_handler->get_default_display($this->entity_bundle, $this->entity_view_mode);
}
}
return parent::edit_execute_form_standard($form_state);
}