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