'#markup'=>t('<p>The basic search form is the keyword and search button that is shown to all users. The additional fields are all part of the advanced search form that is only shown to users that have the "%advsearch" permission. <em>This module does not override these permissions!</em></p>',
'#title'=>t('Populate the advanced form with default values'),
'#description'=>t('By default the advanced form is always empty after a submission. This option will pull the values from the basic search form and use these to populate the advanced search form fields. <span style="color: #ff0000; font-style: italic;">Experimental</span>'),
$groupings_type_help_items[]=t('<other-types>|Search for all other content types not used already in a grouping that is allowed by the type filter.');
$groupings_type_help_items[]=t('<all-types>|Search for every content types allowed by the type filter.');
$groupings_type_help=t('<p>Enter one grouping per line, in the format "%format". The key, %key, is a comma separated list of node content types. The %label is used in the search form display. There are two special key values, <other-types> and <all-types>, described below. A full list of value options are:</p>',
'#title'=>t('Hide the following content types from the %field filter:',array('%field'=>$label)),
'#description'=>t('<strong>This only limits the filter options</strong>. You must set the <a href="!url">permissions here</a> to enforce search restrictions per content types. These premissions are also used to filter the options shown to the user.',
// '#description' => t('This option will create a new checkbox on the node edit page to hide the content from the search.<br/>Only users with "%permission" permission can able to access this checkbox.', array('%permission' => t('Administer node "Exclude from search results" flag'))),
// ),
// 'node_level_restrictions_overview' => array(
// '#markup' => t('The following list is a summary of restricted content.')
'#title'=>t('Admin bypass (primary user with id 1)'),
'#description'=>t('This option bypasses the form configuration settings. This user always be able to search all content types irrespective of this setting.'),
'#title'=>t('Content type permission overview',array('%field'=>$label)),
'#collapsible'=>TRUE,
'#collapsed'=>TRUE,
'permissions'=>array(
'#markup'=>t('This is an overview of what roles can search each content type.')
.theme('item_list',array('items'=>$items))
.t('<p><strong><sup>*</sup></strong>Note: These users are allowed to search all content items.</p><p>To update these, edit the %module module <a href="!url">permissions</a>.</p>',
$errors[]=t('No types could be found. [line: %line]',
array('%line'=>$matches[0]));
}
}
}
else{
$empty_pairs[]=check_plain($text);
}
}
if(!empty($empty_pairs)){
$errors[]=t('Each line must contain a "type|value" pair. Types must contain one or more content type machine codes separated by commas and values must be non-empty strings. This error was seen on the following lines: !list',