You are here

function homebox_forms in Homebox 6.2

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

Implementation of hook_forms().

File

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

Code

function homebox_forms($form_id, $args) {
  switch ($form_id) {
    case 'homebox_admin_new_page':
      return array(
        'homebox_admin_new_page' => array(
          'callback' => 'homebox_admin_page',
        ),
      );
    case isset($args[1]) && is_object($args[1]) ? 'homebox_block_edit_' . $args[1]->module . '_' . $args[1]->delta . '_form' : NULL:
      return array(
        $form_id => array(
          'callback' => 'homebox_block_edit_form_builder',
        ),
      );
  }
}