function RulesUICategory::getInfo

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

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;
}