Projet

Général

Profil

Révision c22e192e

Ajouté par Assos Assos il y a plus de 9 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/webform/webform.api.php
544 544
  }
545 545
}
546 546

  
547
/**
548
 * Determine if a user has access to clear the results of a webform.
549
 *
550
 * Access via this hook is in addition (adds permission) to the standard
551
 * webform access (delete all webform submissions).
552
 *
553
 * @see webform_results_clear_access().
554
 *
555
 * @param $node object
556
 *   The Webform node to check access on.
557
 * @param $account object
558
 *   The user account to check access on.
559
 * @return boolean
560
 *   TRUE or FALSE if the user can access the webform results.
561
 */
562
function hook_webform_results_clear_access($node, $account) {
563
  return user_access('my additional access', $account);
564
}
565

  
566

  
547 567
/**
548 568
 * Return an array of files associated with the component.
549 569
 *

Formats disponibles : Unified diff