You are here

function rules_link_get_links in Rules Link 7.2

Same name and namespace in other branches
  1. 7 rules_link.module \rules_link_get_links()

Gets an array of all rules links, keyed by the type name.

Parameters

$link_names: If set, the function will return the link with the given name.

Return value

RuleLinks[] Depending on isset $link_names, a name single or an array of rules links.

7 calls to rules_link_get_links()
rules_link_entity_view in ./rules_link.module
Implement hook_entity_view().
rules_link_field_extra_fields in ./rules_link.module
Implements hook_field_extra_fields().
rules_link_form_validate in ./rules_link.admin.inc
Validation form for editing form.
rules_link_load in ./rules_link.module
Menu argument loader; Load a rules link by string.
rules_link_menu in ./rules_link.module
Implements hook_menu().

... See full list

1 string reference to 'rules_link_get_links'
rules_link_form in ./rules_link.admin.inc
Generates the rules link editing form.

File

./rules_link.module, line 85
Rules Link - module file.

Code

function rules_link_get_links($link_names = NULL) {
  $links = entity_load_multiple_by_name('rules_link', isset($link_names) ? array(
    $link_names,
  ) : FALSE);
  return isset($link_names) ? reset($links) : $links;
}