hook

Broken Panels hook

  1. function ignition_default_page_manager_pages() {
  2.   $pages = array();
  3.   dpm('here');
  4.   watchdog('debug', t('In page manager hook'));
  5.   // Check the include directory.
  6.   $path = drupal_get_path('mo

Ctools hook

  1. /**
  2.  * Implementation of hook_ctools_plugin_api().
  3.  *
  4.  * If you do this, CTools will pick up default panels pages in
  5.  * <modulename>.pages_default.inc
  6.  */
  7. function ignition_ctools_plugin_api($mo

hook_install doesn't seem to work

  1. <?php
  2. /**
  3.  * Implemenation of hook_install()
  4.  */
  5. function tnt_user_import_install() {
  6.         // Create tables.
  7.         drupal_install_schema('tnt_user_import_schema');
  8. }
  9.  
  10. /**

hook_link_alter not called

  1. <?php  
  2. function curriculum_form_alter(&$form, &$form_state){
  3.         global $user, $node;   
  4.         if($form['#id'] == 'node-form' && $form['type']['#value'] == 'curriculum'){
  5.                 unset($form['body_field']);

hook_views_query_alter to make taxonomy filters behave

  1. function wt_cs_theming_views_query_alter(&$view, &$query) {
  2.   if ($view->name == 'partners') {
  3.     $query->where[0]['clauses'][2] = 'term_data.vid = 1';
  4.   }
  5. }

Fix for Hook form alter - Expand menu settings - ERROR

  1. function hook_form_alter(&$form, $form_state, $form_id)
  2. {
  3.         if (isset($form['type']) && $form['type']['#value'] .'_node_form' == $form_id)
  4.         {
  5.                 $form['menu']['#collapsible'] = 0;

Fix for Hook form alter - Expand menu settings - ERROR

  1. function hook_form_alter(&$form, $form_state, $form_id)
  2. {
  3.         if (isset($form['type']) && $form['type']['#value'] .'_node_settings' == $form_id)
  4.         {
  5.                 $form['menu']['#collapsed'] = FALSE;
  6.         }
  7. }

Hook form alter - Expand menu settings - ERROR

  1. function hook_form_alter(&$form, $form_state, $form_id)
  2. {
  3.         if (isset($form['type']) && $form['type']['#value'] .'_node_settings' == $form_id)
  4.         {
  5.                 $form['path']['#collapsed'] = FALSE;
  6.         }
  7. }

Hook dosen't work

  1. function firewall_action_info() {
  2.   return array(
  3.     'firewall_login_action' => array(
  4.       'description' => t('Login a current user to the network'),
  5.       'type' => 'user',
Syndicate content