| 184 |
$block_content .= htmlspecialchars($sm['status_fb'], ENT_NOQUOTES) ." <span class='". t("submitted") ."'>". $time . t(' ago') ."</span>"; |
$block_content .= htmlspecialchars($sm['status_fb'], ENT_NOQUOTES) ." <span class='". t("submitted") ."'>". $time . t(' ago') ."</span>"; |
| 185 |
} |
} |
| 186 |
//If the user is not allowed to have a status. |
//If the user is not allowed to have a status. |
| 187 |
else if (in_array($fbs_uid, variable_get('facebook_status_clear_user', array(0)))) { |
else if (in_array($fbs_uid, variable_get('facebook_status_clear_user', array(0)))) { |
| 188 |
//If the status form is not the user's own, use different strings than if it is the user's own. |
//If the status form is not the user's own, use different strings than if it is the user's own. |
| 189 |
if ( $fbs_uid != $user->uid ) { |
if ( $fbs_uid != $user->uid ) { |
| 190 |
$block_content .= t('@username is not allowed to have a status.', array('@username' => $fbs_name)); |
$block_content .= t('@username is not allowed to have a status.', array('@username' => $fbs_name)); |
| 584 |
else { |
else { |
| 585 |
$fbs_name = db_result(db_query("SELECT name FROM {users} WHERE uid = %d", $fbs_uid)); |
$fbs_name = db_result(db_query("SELECT name FROM {users} WHERE uid = %d", $fbs_uid)); |
| 586 |
} |
} |
| 587 |
$result = array( |
$result = array(); |
| 588 |
|
$result[0] = array( |
| 589 |
'status_fb' => t("Error: this user is not allowed to have a status."), |
'status_fb' => t("Error: this user is not allowed to have a status."), |
| 590 |
'status_time' => 0, |
'status_time' => 0, |
| 591 |
'fbs_name' => $fbs_name, |
'fbs_name' => $fbs_name, |
| 827 |
} |
} |
| 828 |
|
|
| 829 |
//Sets variables because the form refuses to do it for us! >:( |
//Sets variables because the form refuses to do it for us! >:( |
| 830 |
foreach ($form_state['values'] as $values) { |
$values = array(); |
| 831 |
foreach ($values as $key => $value) { |
$values['fbs_general'] = $form_values['fbs_general']; |
| 832 |
variable_set($key, $value); |
$values['fbs_lengths'] = $form_values['fbs_lengths']; |
| 833 |
} |
$values['fbs_number'] = $form_values['fbs_number']; |
| 834 |
|
$values['fbs_misc'] = $form_values['fbs_misc']; |
| 835 |
|
foreach ($values as $key => $value) { |
| 836 |
|
variable_set($key, $value); |
| 837 |
} |
} |
| 838 |
variable_del('facebook_status_clear_user_records_string'); |
variable_del('facebook_status_clear_user_records_string'); |
| 839 |
variable_del('facebook_status_clear_user_records'); |
variable_del('facebook_status_clear_user_records'); |