function organigrams_form_import in Organigrams 7
Admin menu callback to import an organigram.
Parameters
array $form: The form being used to import the items.
array $form_state: The form state array.
Return value
mixed Renderable array containing a form.
1 string reference to 'organigrams_form_import'
- organigrams_menu in ./
organigrams.module - Implements hook_menu().
File
- ./
organigrams.admin.inc, line 754 - Defines the administration forms for managing organigrams.
Code
function organigrams_form_import($form, &$form_state) {
// A textarea for the import code.
$form['import'] = array(
'#type' => 'textarea',
'#title' => t('Organigram import'),
'#description' => t('Paste the contents of an organigram export in this textarea.'),
);
// Add actions.
$form['actions'] = array(
'#type' => 'actions',
);
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Start import'),
);
return $form;
}