function headerimage_settings_block_edit in Header image 7
Same name and namespace in other branches
- 5 headerimage.module \headerimage_settings_block_edit()
- 6 headerimage.module \headerimage_settings_block_edit()
Edit block data form
1 string reference to 'headerimage_settings_block_edit'
- headerimage_menu in ./
headerimage.module - Implementation of hook_menu()
File
- ./
headerimage.module, line 57 - headerimage.module Conditionally display an node in a block.
Code
function headerimage_settings_block_edit($form, &$form_state, $delta) {
$blocks = headerimage_get_blocks();
$form = array();
$form['delta'] = array(
'#type' => 'hidden',
'#value' => $delta,
);
$form['title'] = array(
'#type' => 'textfield',
'#title' => t('Block title'),
'#description' => t('The block name must be unique.'),
'#default_value' => $blocks[$delta],
'#required' => true,
);
$form['op'] = array(
'#type' => 'submit',
'#value' => t('Save'),
);
return $form;
}