You are here

function headerimage_settings_block_edit in Header image 6

Same name and namespace in other branches
  1. 5 headerimage.module \headerimage_settings_block_edit()
  2. 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 60
headerimage.module Conditionally display an node in a block.

Code

function headerimage_settings_block_edit(&$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'),
  );
  $form['#redirect'] = 'admin/settings/headerimage';
  return $form;
}