Fix for PHP for default argument

  1. if (arg(0) == 'node' && is_numeric(arg(1))) {
  2.   $group_node = node_load(arg(1));
  3.   // Need to use this AMO key to match across tables to the Organization nid
  4.   $group_amokey = $group_node->field_group_amokey[0]['value'];
  5.   // Query the database to get the nid of the organization from the directory
  6.   $organization_node = db_result(db_query("SELECT content_field_dir_amokey.nid FROM content_field_dir_amokey LEFT JOIN content_type_group ON content_type_group.field_group_amokey_value=content_field_dir_amokey.field_dir_amokey_value WHERE content_type_group.field_group_amokey_value = %d", $group_amokey));
  7. } else {
  8.   return FALSE;
  9. }
  10.  
  11. // https://archstl.org/admin/build/views/edit/group_info <-- View for this argument validation

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.