Get rid of "array()" on function override
Logi Khoo - October 23, 2008 - 06:03
I'm trying to override a function for this revision delete confirm form, so I can hide the delete function from a role.
Got what I wanted, but currently the "array()" is showing up. I have tried removing the array code, but it returns an error.
Is there anyway i can call out the whole function variables for me to look at?
I'm fairly new to php, thought of hiding the array output by css instead, but no luck...
If someone can point me on assigning a class to this code will be great too =)
<?php
/** Allows only admin role to delete revisions**/
function framework_node_revision_delete_confirm($node) {
if (!user_access('administer taxonomy')) {
$form['node'] = t(test);
return confirm_form($form, t('Sorry, but deletion of revision has been disabled for audit trail purpose.', array('%revision-date' => format_date($node->revision_timestamp))), 'node/'. $node->nid .'/revisions', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}
}
?>Regards
Logi
