You are here

function finder_condition_args_default in Finder 7

Get preconfigured condition match methods.

3 calls to finder_condition_args_default()
finder_admin_custom_matching in includes/finder.admin.inc
Finder admin custom matching configuration page.
finder_admin_custom_matching_submit in includes/finder.admin.inc
Submit function for finder admin custom matching configuration page.
finder_condition_args in ./finder.module
Get data about finder match methods.

File

./finder.module, line 1261
The finder module.

Code

function finder_condition_args_default() {
  return array(
    'c' => array(
      'name' => t('Contains'),
      'description' => t('!matches <em>contain</em> the !keywords.'),
      'operator' => 'LIKE',
      'value_prefix' => '%',
      'value_suffix' => '%',
    ),
    'cw' => array(
      'name' => t('Contains word'),
      'description' => t('!matches <em>contain</em> the !keywords as whole words.'),
      'operator' => 'REGEXP',
      'value_prefix' => '[[:<:]]',
      'value_suffix' => '[[:>:]]',
    ),
    'e' => array(
      'name' => t('Equals'),
      'description' => t('!matches must match the !keywords <em>exactly</em>.'),
      'operator' => '=',
      'value_prefix' => '',
      'value_suffix' => '',
    ),
    'sw' => array(
      'name' => t('Starts with'),
      'description' => t('!matches must <em>start with</em> the !keywords.'),
      'operator' => 'LIKE',
      'value_prefix' => '%',
      'value_suffix' => '',
    ),
    'ew' => array(
      'name' => t('Ends with'),
      'description' => t('!matches must <em>end with</em> the !keywords.'),
      'operator' => 'LIKE',
      'value_prefix' => '',
      'value_suffix' => '%',
    ),
    'lt' => array(
      'name' => t('Less than'),
      'description' => t('!matches must be <em>less than</em> the !keywords.'),
      'operator' => '<',
      'value_prefix' => '',
      'value_suffix' => '',
    ),
    'lte' => array(
      'name' => t('Less than or equals'),
      'description' => t('!matches must be <em>less than or equal to</em> the !keywords.'),
      'operator' => '<=',
      'value_prefix' => '',
      'value_suffix' => '',
    ),
    'gt' => array(
      'name' => t('Greater than'),
      'description' => t('!matches must be <em>greater than</em> the !keywords.'),
      'operator' => '>',
      'value_prefix' => '',
      'value_suffix' => '',
    ),
    'gte' => array(
      'name' => t('Greater than or equals'),
      'description' => t('!matches must be <em>greater than or equal to</em> the !keywords.'),
      'operator' => '>=',
      'value_prefix' => '',
      'value_suffix' => '',
    ),
    'nc' => array(
      'name' => t("Doesn't contain"),
      'description' => t("!matches <em>don't contain</em> the !keywords."),
      'operator' => 'NOT LIKE',
      'value_prefix' => '%',
      'value_suffix' => '%',
    ),
    'ncw' => array(
      'name' => t("Doesn't Contain word"),
      'description' => t("!matches <em>don't contain</em> the !keywords as whole words."),
      'operator' => 'NOT REGEXP',
      'value_prefix' => '[[:<:]]',
      'value_suffix' => '[[:>:]]',
    ),
    'ne' => array(
      'name' => t('Not equals'),
      'description' => t('!matches must <em>not</em> match the !keywords.'),
      'operator' => '<>',
      'value_prefix' => '',
      'value_suffix' => '',
    ),
  );
}