[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/rules/rules_admin/ -> rules_admin.inc (summary)

(no description)

File Size: 384 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 17 functions

  rules_admin_element_map_variable_name()
  rules_admin_element_help()
  rules_admin_get_compatible_sets()
  rules_admin_get_grouped_labels()
  rules_admin_element_filter()
  rules_admin_is_valid_data_type()
  rules_admin_filter_info()
  rules_admin_argument_satisifable()
  rules_admin_map_get_possible_arguments()
  rules_admin_get_categories()
  _rules_admin_get_label()
  rules_admin_get_argument_labels()
  rules_admin_overview_table()
  theme_rules_admin_configuration_status()
  rules_admin_fix_breadcrumb()
  rules_admin_add_crumbs()
  rules_admin_is_event_rule()

Functions
Functions that are not part of a class:

rules_admin_element_map_variable_name($name, $element)   X-Ref
Gets the variable, which is assigned (mapped) to the given argument.


rules_admin_element_help(&$form, $element)   X-Ref
Shows the element help


rules_admin_get_compatible_sets($rule, $sets)   X-Ref
Gets all compatible sets, which means that all arguments are available in the other set too


rules_admin_get_grouped_labels($elements, $key = 'module')   X-Ref
Gets an array of element labels grouped by modules

param: $elements
param: $key

rules_admin_element_filter($element)   X-Ref
This is used for filtering the rules, sets, action and conditions that should be shown.
Rules and sets are filtered when they are fixed and the variable 'rules_show_fixed'
is  not set to on. Actions and conditions are filtered out if they are marked as
being hidden.

return: TRUE, when the element should be kept. Else FALSE.

rules_admin_is_valid_data_type($data_type, $arg_type)   X-Ref
Determines if the given data type is valid for the given argument.

param: $data_type
param: $arg_type
return:

rules_admin_filter_info($variables, &$infos)   X-Ref
Filters the info about elements (actions, conditions), so that only elements
compatible with the given variables are kept, which means suiting variables
for all arguments are available, so that the action/condition can be
configured.
Additionally, arguments having no suiting variables are recorded
in the 'unsatisfied arguments' slot of the element in $infos.


rules_admin_argument_satisifable($info, $variables)   X-Ref
Determines whether the argument can be configured properly, so whether
there are matching variables available or needed.


rules_admin_map_get_possible_arguments($arg_info, $variables)   X-Ref
Gets the possible variables (= of the same entity) for an argument


rules_admin_get_categories($item_type)   X-Ref
Returns an array of all existing categories

param: $item_type
return:

_rules_admin_get_label(&$form_state, $info, &$element, $value, $cfirst = NULL)   X-Ref
Gets the label for the info of the given element by apply label callbacks.
Note that this is also used for argument infos.

param: $cfirst
param: $element
return: An array of changed properties of the given info

rules_admin_get_argument_labels($proxy, $element, $prefix = '@')   X-Ref
Gets the labels of the variables, which are configured to be passed as arguments
to the given element.


rules_admin_overview_table($params)   X-Ref
Returns a table of rules filtered by the given parameters

Supported parameters: fixed, category, set, active.
Category and set may be set to NULL to hide their columns.

theme_rules_admin_configuration_status($status)   X-Ref
Returns the given status rendered as html.


rules_admin_fix_breadcrumb($rule, $name)   X-Ref
Fixes the breadcrumb on the rule edit/delete/revert


rules_admin_add_crumbs($crumbs)   X-Ref
Adds some further crumbs to the breadcrumb.
Due to the bug http://drupal.org/node/430304, some pages might have no breadcrumb.


rules_admin_is_event_rule($rule)   X-Ref
No description



Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7