You are here

public static function RulesUICategory::getInfo in Rules 7.2

Gets info about all available categories, or about a specific category.

Return value

array

2 calls to RulesUICategory::getInfo()
RulesUICategory::getCategory in ui/ui.core.inc
Gets the category for the given item info array.
RulesUICategory::getOptions in ui/ui.core.inc
Returns an array of options to use with a select.

File

ui/ui.core.inc, line 1245
Contains core Rules UI functions.

Class

RulesUICategory
Class holding category related methods.

Code

public static function getInfo($category = NULL) {
  $data = rules_fetch_data('category_info');
  if (isset($category)) {
    return $data[$category];
  }
  return $data;
}