function patterns_actions in Patterns 7
Same name and namespace in other branches
- 7.2 includes/api/api.inc \patterns_actions()
Returns an array of allowed actions, as defined in patterns.module.
Return value
array Allowed actions.
5 calls to patterns_actions()
- patterns_parser_is_valid_action_name in includes/
parser/ parser.inc - Checks whether a string is a valid action name.
- patterns_parser_retrieve_actions_from_section in includes/
parser/ parser.inc - Returns all the actions from a a given section
- patterns_reformat_actions in includes/
core/ common.inc - Group the action and the data fields.
- _patterns_scan_action in includes/
parser/ scan.inc - Helper function for scanning patterns.
- _patterns_scan_analyze_patternscan in includes/
parser/ scan.inc - Analyze the result of a call to patterns_scan_pattern, and check whether the pattern was valid.
File
- includes/
api/ api.inc, line 207 - API for writing pattern files.
Code
function patterns_actions() {
return array(
PATTERNS_CREATE => PATTERNS_CREATE,
PATTERNS_MODIFY => PATTERNS_MODIFY,
PATTERNS_DELETE => PATTERNS_DELETE,
PATTERNS_INCLUDE => PATTERNS_INCLUDE,
);
}