function revenue_sharing_by_role_adsense in Google AdSense integration 5.2
1 call to revenue_sharing_by_role_adsense()
- revenue_sharing_by_role_settings in contrib/
revenue_sharing_by_role/ revenue_sharing_by_role.module
File
- contrib/
revenue_sharing_by_role/ revenue_sharing_by_role.module, line 13
Code
function revenue_sharing_by_role_adsense($op, $args = array()) {
switch ($op) {
case 'status':
$error_flag = FALSE;
if (variable_get('cache', 0)) {
revenue_sharing_by_role_error(REVENUE_SHARING_BY_ROLE_ERROR_CACHING_ENABLED);
}
if (!module_exists('profile')) {
revenue_sharing_by_role_error(REVENUE_SHARING_BY_ROLE_ERROR_PROFILE_NOT_ENABLED);
$error_flag = TRUE;
}
if (!revenue_sharing_by_role_get_profile_client_id(1)) {
revenue_sharing_by_role_error(REVENUE_SHARING_BY_ROLE_ERROR_NOT_CONFIGURED);
$error_flag = TRUE;
}
return $error_flag;
case 'settings':
return revenue_sharing_by_role_settings();
case 'client_id':
return revenue_sharing_by_role_client_id();
}
}