You are here

function hook_farm_flags in farmOS 7

Provide a list of flags that can be applied to records for filtering.

Return value

array Returns an associative array of flags, with machine name and translatable.

Related topics

1 function implements hook_farm_flags()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

farm_flags_farm_flags in modules/farm/farm_flags/farm_flags.module
Implements hook_farm_flags().
1 invocation of hook_farm_flags()
farm_flags_list in modules/farm/farm_flags/farm_flags.module
Get a list of available flags.

File

modules/farm/farm_flags/farm_flags.api.php, line 30
Hooks provided by farm_flags.

Code

function hook_farm_flags() {
  return array(
    'priority' => t('Priority'),
    'review' => t('Needs Review'),
    'organic' => t('Organic'),
    'notorganic' => t('Not Organic'),
  );
}