function openlayers_presets_ui_preset_action_load in Openlayers 6
Menu wildcard loader for preset action
File
- modules/
openlayers_presets_ui/ openlayers_presets_ui.module, line 139 - Main OpenLayers Preset UI Hook Implemntations
Code
function openlayers_presets_ui_preset_action_load($action = '') {
$allowed_actions = array(
'edit',
'delete',
'export',
);
// Check action
if (in_array($action, $allowed_actions)) {
return $action;
}
else {
return FALSE;
}
}