hello. using the module, thank you for developing!
I need to provide client access to module, but not allow site administration.
I have added this ability inside the openx.module file.
Added this...
/**
* Implementation of hook_perm
*/
function openx_perm() {
return array('administer openx');
}
/**
* Implementation of hook_menu().
*/
function openx_menu($may_cache = false)
{
$items = array();
$items['admin/settings/openx'] = array(
'title' => 'OpenX (openx) adserver configuration',
'description' => 'Configure OpenX (openx) AdServer integration behavior and appearance.',
'page callback' => 'drupal_get_form',
'page arguments' => array('openx_admin_settings'),
// commented out the line below. changed the line below that to new permission from hook_perm above.
//'access callback' => 'user_access',
'access arguments' => array('administer openx'),
// changes end above this line.
'type' => MENU_NORMAL_ITEM, // optional
);
return $items;
}
I am happy to provide a patch if you'd like, just let me know.
Thanks!
div