Last updated September 16, 2013. Created on September 16, 2013.
Edited by fago. Log in to edit this page.

Since Rules 2.4 the API allows you to define categories instead (or in addition) to the regular 'group' key of actions/conditions. As of now, Rules 7.x does not make use of this icons, but other UIs may do - e.g. the UI of fluxkraft does. Still, defining a category might be useful for more than providing an icon, i.e. you can use it to weight the ordering of categories as they appear in drop down lists as used by the Rules module:

 * Implements hook_rules_category_info().
function module_rules_category_info() {
  return array(
    'rules_components' => array(
      'label' => t('Components'),
      'equals group' => t('Components'),
      'weight' => 50,

For best compatibility modules may keep using the 'group' key for referring to categories - that's why 'equals group' allows you to denote the relationship.

Please see hook_rules_category_info() for complete API docs. Also, as Rules and fluxservice icons follow the same rules, you can refer to the fluxservice documentation for creating icons, but provide it via hook_rules_category_info() instead.

Looking for support? Visit the forums, or join #drupal-support in IRC.