id - Required, the ID or primary key of the object
class - Required, the class name of the object
label - The label or display name of the object, e.g., "Page"
add - To include an 'add' link, this must be the URL of the add link
edit - Include an 'edit' link, this must be the URL of the add link
delete - Include a 'delete' link, this must be the URL of the add link
versions - Include a 'versions' link, default = false
If label is omitted, it will look for the value in the $display_name
static properties of the class itself ($class::$display_name). Failing
to find that, it will use the label "Item".
The ID value will be passed to the edit handler as an ?id= parameter in
a GET request. For delete, this will be an id parameter in a POST request.
Automatically adds the appropriate access control checks on each action, and
hides the button if the current user doesn't have permission:
Use this handler to add edit buttons for any object in a page. Note: This helper will output nothing unless the current user has admin-level access.
Usage:
Parameters:
id- Required, the ID or primary key of the objectclass- Required, the class name of the objectlabel- The label or display name of the object, e.g., "Page"add- To include an 'add' link, this must be the URL of the add linkedit- Include an 'edit' link, this must be the URL of the add linkdelete- Include a 'delete' link, this must be the URL of the add linkversions- Include a 'versions' link, default = falseIf label is omitted, it will look for the value in the
$display_namestatic properties of the class itself ($class::$display_name). Failing to find that, it will use the label "Item".The ID value will be passed to the edit handler as an
?id=parameter in a GET request. For delete, this will be anidparameter in a POST request.Automatically adds the appropriate access control checks on each action, and hides the button if the current user doesn't have permission:
add-admin/editandadmin/addedit-admin/editdelete-admin/deleteversions-admin/versions