本文整理汇总了PHP中ctools_export_ui::get_wizard_info方法的典型用法代码示例。如果您正苦于以下问题:PHP ctools_export_ui::get_wizard_info方法的具体用法?PHP ctools_export_ui::get_wizard_info怎么用?PHP ctools_export_ui::get_wizard_info使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ctools_export_ui
的用法示例。
在下文中一共展示了ctools_export_ui::get_wizard_info方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: t
function get_wizard_info(&$form_state)
{
$form_info = parent::get_wizard_info($form_state);
ctools_include('stylizer');
// For add forms, we have temporarily set the 'form type' to include
// the style type so the default wizard_info can find the path. If
// we did that, we have to put it back.
if (!empty($form_state['type'])) {
$form_state['form type'] = 'add';
$form_info['show back'] = TRUE;
}
// Ensure these do not get out of sync.
$form_state['item']->settings['name'] = $form_state['item']->name;
$form_state['settings'] = $form_state['item']->settings;
// Figure out the base style plugin in use and make sure that is available.
$plugin = NULL;
if (!empty($form_state['item']->settings['style_base'])) {
$plugin = ctools_get_style_base($form_state['item']->settings['style_base']);
ctools_stylizer_add_plugin_forms($form_info, $plugin, $form_state['op']);
} else {
// This is here so the 'finish' button does not show up, and because
// we don't have the selected style we don't know what the next form(s)
// will be.
$form_info['order']['next'] = t('Configure style');
}
// If available, make sure these are available for the 'choose' form.
if (!empty($form_state['item']->style_module)) {
$form_state['module'] = $form_state['item']->style_module;
$form_state['type'] = $form_state['item']->style_type;
}
$form_state['base_style_plugin'] = $plugin;
$form_state['settings'] = $form_state['item']->settings;
return $form_info;
}