+ if (is_null($options)) {
+ $options = array();
+ }
+
+ $this->actionName = $action->trimmed('action');
+
+ $prefill = array('content', 'inreplyto', 'lat',
+ 'lon', 'location_id', 'location_ns',
+ 'to_group', 'to_profile', 'private');
+
+ foreach ($prefill as $fieldName) {
+ if (array_key_exists($fieldName, $options)) {
+ $this->$fieldName = $options[$fieldName];
+ }
+ }