summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-11-06 23:05:20 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-11-06 23:05:20 -0800
commitbeb63a83804e57050a23b3a90ebed93be41b6769 (patch)
tree992877365f08f9bb39af1a405cd25f1c0c950f32 /modules/gallery/libraries
parentf102693966824cf1bc1421282d89f1ee2318ed9e (diff)
Clean up the In place edit api:
1) Only allow 1 in place edit to be active at a time (gets around the issue of using an id to identify the form 2) remove the add_ prefix from some of the api methods 3) clean up inconsistent naming
Diffstat (limited to 'modules/gallery/libraries')
-rw-r--r--modules/gallery/libraries/InPlaceEdit.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/gallery/libraries/InPlaceEdit.php b/modules/gallery/libraries/InPlaceEdit.php
index 057874e3..67ab3805 100644
--- a/modules/gallery/libraries/InPlaceEdit.php
+++ b/modules/gallery/libraries/InPlaceEdit.php
@@ -35,22 +35,22 @@ class InPlaceEdit_Core {
return $instance;
}
- public function add_action($action) {
+ public function action($action) {
$this->action = $action;
return $this;
}
- public function add_rules($rules) {
+ public function rules($rules) {
$this->rules += $rules;
return $this;
}
- public function add_messages($messages) {
+ public function messages($messages) {
$this->messages += $messages;
return $this;
}
- public function add_callback($callback) {
+ public function callback($callback) {
$this->callback = $callback;
return $this;
}