function node_gallery_api_relationship_operations in Node Gallery 7
Returns a list of operations available to a Gallery-to-Image relationship.
Return value
array An array of associative arrays with keys and values of titles and href links.
1 call to node_gallery_api_relationship_operations()
- node_gallery_api_relationship_type_list in ./
node_gallery_api.admin.inc - Displays a list of all defined Gallery-to-Image relationships.
File
- ./
node_gallery_api.admin.inc, line 83 - Node Gallery API admin interface.
Code
function node_gallery_api_relationship_operations($rid) {
$items[] = array(
'title' => t('Change content types'),
'href' => 'admin/config/content/node-gallery/relationship-type/content_types/' . $rid,
);
$items[] = array(
'title' => t('Change settings'),
'href' => 'admin/config/content/node-gallery/relationship-type/settings/' . $rid,
);
$items[] = array(
'title' => t('Delete'),
'href' => 'admin/config/content/node-gallery/delete/' . $rid,
);
return $items;
}