function flag_flag_is_flagged_access_get_children in Flag 7.3
1 call to flag_flag_is_flagged_access_get_children()
- flag_flag_is_flagged_access_get_child in plugins/
access/ flag_is_flagged/ flag_is_flagged.inc
1 string reference to 'flag_flag_is_flagged_access_get_children'
- flag_is_flagged.inc in plugins/
access/ flag_is_flagged/ flag_is_flagged.inc
File
- plugins/
access/ flag_is_flagged/ flag_is_flagged.inc, line 28
Code
function flag_flag_is_flagged_access_get_children($plugin, $parent) {
$plugins = array();
$entities = entity_get_info();
foreach ($entities as $entity_type => $info) {
if (entity_type_supports($entity_type, 'view')) {
$plugin['title'] = t('@entity_type is flagged', array(
'@entity_type' => $info['label'],
));
$plugin['keyword'] = $entity_type;
$plugin['name'] = $parent . ':' . $entity_type;
$plugin['required context'] = new ctools_context_required(t('Entity'), $entity_type);
$plugins[$parent . ':' . $entity_type] = $plugin;
}
}
return $plugins;
}