*/
public function check(&$args) {
// lets bypass a few civicrm urls from this check
- static $skip = array('civicrm/admin/setting/updateConfigBackend', 'civicrm/admin/messageTemplates');
+ $skip = array('civicrm/admin/setting/updateConfigBackend', 'civicrm/admin/messageTemplates');
+ CRM_Utils_Hook::idsException($skip);
$path = implode('/', $args);
if (in_array($path, $skip)) {
return NULL;
);
}
+ /**
+ * This hook is called for bypass a few civicrm urls from IDS check
+ * @param array $skip list of civicrm url;
+ */
+ public static function idsException(&$skip) {
+ return self::singleton()->invoke(1, $skip, self::$_nullObject,
+ self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject,
+ 'civicrm_idsException'
+ );
+ }
+
}