I'm using this module for a system at work.. we have a few content types that we use, and one of them is searched more than others. however, it seems to be the last tab on the list.
for example, we have "residents", "staff meetings", "communcations", "documentation", etc.. and I need "residents" to take priority over the search results as far as the tab thats displayed first.

I looked high and low and can't seem to find where I could set this. could anyone give me assistance with this, even if it means patching, or changing a few lines of code..?

thanks a million!

Comments

thomasmuirhead’s picture

I have the same problem but would like to Make sure that the "All" category of active search is displayed first every time with the optional types next.

Any help on this issue would be greatly appreciated.

brakkevh’s picture

Help would be greatly appreciated.

pembeci’s picture

Did you try using the '#weight' property of the forms?

  $form = array();

  $form['example1'] = array(
    '#type' => 'tabset',
  );
  $form['example1']['tab1'] = array(
    '#type' => 'tabpage',
    '#title' => t('One'),
    '#content' => t('First tab content.'),
    '#weight' => 1,  // added to the sample example
  );
  $form['example1']['tab2'] = array(
    '#type' => 'tabpage',
    '#title' => t('Two'),
    '#content' => t('Second tab content.'),
    '#weight' => 2,  // added to the sample example
  );
  $form['example1']['tab3'] = array(
    '#type' => 'tabpage',
    '#title' => t('Three'),
    '#content' => t('Third tab content.'),
    '#weight' => 3,  // added to the sample example
  );

  return tabs_render($form);

This is for the tabs module though. I am not sure how you can adapt it to the activesearch.