<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
class CRM_ACL_Form_WordPress_Permissions extends CRM_Core_Form {
/**
- * Build the form object
+ * Build the form object.
*
* @return void
*/
$this->addButtons(
array(
array(
- 'type' => 'next',
- 'name' => ts('Save'),
- 'spacing' => '',
- 'isDefault' => FALSE ),
+ 'type' => 'next',
+ 'name' => ts('Save'),
+ 'spacing' => '',
+ 'isDefault' => FALSE,
+ ),
)
);
}
/**
- * Process the form submission
+ * Process the form submission.
*
* @return void
*/
}
if (!empty($warningPermissionNames)) {
CRM_Core_Session::setStatus(
- ts('The %1 role was assigned one or more permissions that may prove dangerous for users of that role to have. Please reconsider assigning %2 to them.', array(1 => $wp_roles->role_names[$role], 2 => implode(', ', $warningPermissionNames))),
+ ts('The %1 role was assigned one or more permissions that may prove dangerous for users of that role to have. Please reconsider assigning %2 to them.', array(
+ 1 => $wp_roles->role_names[$role],
+ 2 => implode(', ', $warningPermissionNames),
+ )),
ts('Unsafe Permission Settings')
);
}
return $perms_array;
}
+
}