function homebox_clone_page in Homebox 7.3
Same name and namespace in other branches
- 7.2 homebox.admin.inc \homebox_clone_page()
Form callback for cloning a homebox.
1 string reference to 'homebox_clone_page'
- homebox_menu in ./
homebox.module - Implements hook_menu().
File
- ./
homebox.admin.inc, line 133 - Homebox admin file, takes care admin interface for homebox
Code
function homebox_clone_page($form, &$form_state, $page = FALSE) {
$form = homebox_admin_page($form, $form_state, $page);
unset($form['page']['name']['#disabled']);
unset($form['page']['name']['#value']);
$form['page']['options']['title']['#default_value'] = '';
$form['page']['options']['path']['#default_value'] = '';
$form['import']['#type'] = 'value';
$form['import']['#value'] = $page;
$form['submit']['#value'] = t('Add page');
$form['#submit'][] = 'homebox_clone_page_submit';
$form['#validate'][] = 'homebox_admin_page_validate';
return $form;
}