function content_copy_deploy_add_form in Deploy - Content Staging 6
Same name and namespace in other branches
- 5 content_copy_deploy/content_copy_deploy.module \content_copy_deploy_add_form()
Deploy content type form.
Parameters
$form_state: FAPI form state
$vid: The vid of the vocabulary we want to deploy.
Return value
FAPI array
See also
content_copy_deploy_add_form_submit()
1 string reference to 'content_copy_deploy_add_form'
- content_copy_deploy_menu in modules/
content_copy_deploy/ content_copy_deploy.module - Implementation of hook menu().
File
- modules/
content_copy_deploy/ content_copy_deploy.pages.inc, line 19 - Page handlers for content type deployment pages.
Code
function content_copy_deploy_add_form($form_state, $plans) {
$types = content_copy_types();
$form['pid'] = array(
'#title' => t('Deployment Plan'),
'#type' => 'select',
'#options' => $plans,
'#description' => t('The deployment plan to add this content type to'),
);
$form['content_type'] = array(
'#title' => t('Content Type'),
'#type' => 'select',
'#multiple' => TRUE,
'#options' => $types,
'#required' => TRUE,
'#description' => t('The content type to deploy'),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Add Content Type'),
);
return $form;
}