block_box_form

Versions
4.6 – 6
block_box_form($edit = array())

▾ 2 functions call block_box_form()

block_block in modules/block.module
Implementation of hook_block().
block_box_add in modules/block.module
Menu callback; displays the block creation form.

Code

modules/block.module, line 353

<?php
function block_box_form($edit = array()) {
  $output = form_textfield(t('Block title'), 'title', $edit['title'], 50, 64, t('The title of the block as shown to the user. Leave blank for no title.'));
  $output .= filter_form('format', $edit['format']);
  $output .= form_textarea(t('Block body'), 'body', $edit['body'], 70, 10, t('The content of the block as shown to the user.'));
  $output .= form_textfield(t('Block description'), 'info', $edit['info'], 50, 64, t('A brief description of your block. Used on the <a href="%overview">block overview page</a>.', array('%overview' => url('admin/block'))));

  return $output;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.