You are here

function homebox_forms in Homebox 7.3

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

Implements hook_forms().

File

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

Code

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