/[drupal]/contributions/modules/facebook_status/facebook_status.module
ViewVC logotype

Diff of /contributions/modules/facebook_status/facebook_status.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.5.4.13, Sat Aug 30 23:11:19 2008 UTC revision 1.5.4.14, Mon Sep 1 06:08:37 2008 UTC
# Line 184  function facebook_status_block($op='list Line 184  function facebook_status_block($op='list
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));
# Line 584  function facebook_status_get_status($fbs Line 584  function facebook_status_get_status($fbs
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,
# Line 826  function facebook_status_admin_submit($f Line 827  function facebook_status_admin_submit($f
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');

Legend:
Removed from v.1.5.4.13  
changed lines
  Added in v.1.5.4.14

  ViewVC Help
Powered by ViewVC 1.1.2