function page_manager_handler_import in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 page_manager/page_manager.admin.inc \page_manager_handler_import()
Rearrange the order of variants.
1 string reference to 'page_manager_handler_import'
- page_manager_get_operations in page_manager/
page_manager.admin.inc - Take the operations array from a task and expand it.
File
- page_manager/
page_manager.admin.inc, line 1477 - Administrative functions for the page manager.
Code
function page_manager_handler_import($form, &$form_state) {
$form['title'] = array(
'#type' => 'textfield',
'#title' => t('Variant name'),
'#description' => t('Enter the name of the new variant.'),
);
if (user_access('use ctools import')) {
$form['object'] = array(
'#type' => 'textarea',
'#title' => t('Paste variant code here'),
'#rows' => 15,
);
}
else {
$form['shoveoff'] = array(
'#markup' => '<div>' . t('You do not have sufficient permissions to perform this action.') . '</div>',
);
}
return $form;
}