You are here

function homebox_homebox_block_edit_form in Homebox 6.2

Same name and namespace in other branches
  1. 6.3 homebox.module \homebox_homebox_block_edit_form()
  2. 7.3 homebox.module \homebox_homebox_block_edit_form()
  3. 7.2 homebox.module \homebox_homebox_block_edit_form()

File

./homebox.module, line 717
Homebox main file, takes care of global functions settings constants, etc.

Code

function homebox_homebox_block_edit_form($block) {
  $form = array();
  $form['title_custom'] = array(
    '#type' => 'textfield',
    '#title' => t('Title'),
    '#size' => 25,
    '#default_value' => isset($block->title_custom) ? $block->title_custom : '',
    '#required' => TRUE,
  );
  $form['content'] = array(
    '#type' => 'textarea',
    '#title' => t('Content'),
    '#default_value' => isset($block->content) ? $block->content : '',
    '#required' => TRUE,
  );
  return $form;
}