noticeaction improvements
[statusnet:freesocial.git] / theme / FreesocTheme / content / form.php
1 <?php
2         $template = $this->get_template();
3         switch ($template) {
4         case 'delete':
5         case 'favorite':
6         case 'repeat':
7         case 'reply':
8         case 'newnotice':
9                 $class = ucfirst($template).'Form';
10                 call_user_func("$class::run", $this->action->args);
11                 break;
12         default:
13                 throw new Exception('No such action found');
14         };