You are here

function hook_farm_log_categories in farmOS 7

Provide a list of log categories that should be created when the module is installed. Note that these will be passed through the t() function when they are created so that they can be translated. This does mean that they will only be translated once, to whatever the site's default language is.

Return value

array Returns an array of log categories (as simple strings).

Related topics

7 functions implement hook_farm_log_categories()

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

farm_crop_farm_log_categories in modules/farm/farm_crop/farm_crop.module
Implements hook_farm_log_categories().
farm_equipment_farm_log_categories in modules/farm/farm_equipment/farm_equipment.module
Implements hook_farm_log_categories().
farm_livestock_farm_log_categories in modules/farm/farm_livestock/farm_livestock.module
Implements hook_farm_log_categories().
farm_sensor_farm_log_categories in modules/farm/farm_sensor/farm_sensor.module
Implements hook_farm_log_categories().
farm_soil_compost_farm_log_categories in modules/farm/farm_soil/farm_soil_compost/farm_soil_compost.module
Implements hook_farm_log_categories().

... See full list

1 invocation of hook_farm_log_categories()
farm_log_categories_create_all in modules/farm/farm_log/farm_log.module
Create log categories on behalf of all modules that provide them.

File

modules/farm/farm_log/farm_log.api.php, line 33
Hooks provided by farm_log.

Code

function hook_farm_log_categories() {
  return array(
    'My module category',
    'My other category',
  );
}