Project

General

Profile

Revision 810710a0

ID810710a0707b58c36bf6baab7b125739b4d464f7
Parent 2a14e5d9
Child 7ac8c744

Added by Andreas Kohlbecker over 2 years ago

ref #7494 registration search block can be used on any page

View differences:

modules/cdm_dataportal/cdm_dataportal.module
830 830
      'pages' => "cdm_dataportal/taxon/*", // multiple page paths separated by "\n"!!!
831 831
    );
832 832
  $block['registrations_search_filter'] =  array(
833
    'title' => '<none>',
833
    'title' => 'Search registrations',
834 834
    'info' => t('CDM - Registrations search filter'),
835 835
    'cache' => DRUPAL_CACHE_PER_PAGE,
836
    'visibility' => BLOCK_VISIBILITY_LISTED,
836
    'visibility' => BLOCK_VISIBILITY_NOTLISTED,
837 837
    'pages' => "cdm_dataportal/search/registration\ncdm_dataportal/search/registration/*", // multiple page paths separated by "\n"!!!
838 838
  );
839 839

  
modules/cdm_dataportal/cdm_dataportal.search.php
773 773

  
774 774
  $filter_presets = (isset($_SESSION['cdm'][SESSION_KEY_SEARCH_REGISTRATION_FILTER]) ? $_SESSION['cdm'][SESSION_KEY_SEARCH_REGISTRATION_FILTER] : array());
775 775
  $filter_presets = array_merge($filter_presets, remove_drupal_form_params($_REQUEST));
776

  
776
  $form['#action'] = 'cdm_dataportal/search/registration/';
777 777
  $form['#method'] = 'get';
778 778
  $form['#attributes'] = array('class' => array('search-filter'));
779 779
  $form['identifier'] = array(

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)