function autoassignrole_update_page in Auto Assign Role 7
Function to update existing role-specific page.
Parameters
array $page: The details of the page to be added.
int $id: The id of the page to be updated.
Return value
bool Return true if successful | false.
1 call to autoassignrole_update_page()
- autoassignrole_page_form_submit in ./
autoassignrole.admin.inc - Implements hook_form_submit().
File
- ./
autoassignrole.admin.inc, line 439 - Administrative functionality for auto assign role.
Code
function autoassignrole_update_page($page, $id) {
$return_value = FALSE;
try {
$return_value = db_update('autoassignrole_page')
->fields($page)
->condition('rid_page_id', $id)
->execute();
} catch (Exception $e) {
drupal_set_message(t('db_update failed. Message = %message, query = %query', array(
'%message' => $e
->getMessage(),
'%query' => $e->query_string,
)), 'error');
}
return $return_value;
}