function headerimage_settings_block_edit in Header image 5
Same name and namespace in other branches
- 6 headerimage.module \headerimage_settings_block_edit()
- 7 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 181 - headerimage.module Conditionally display an node in a block.
Code
function headerimage_settings_block_edit($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('Submit'),
);
return $form;
}