You are here

function page_manager_handler_import in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 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 1422
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 PHP for block visibility')) {
    $form['object'] = array(
      '#type' => 'textarea',
      '#title' => t('Paste variant code here'),
      '#rows' => 15,
    );
  }
  else {
    $form['shoveoff'] = array(
      '#value' => '<div>' . t('You do not have sufficient permissions to perform this action.') . '</div>',
    );
  }
}