diff --git a/geofield.module b/geofield.module index c592bd0..56164b8 100644 --- a/geofield.module +++ b/geofield.module @@ -9,7 +9,7 @@ module_load_include('inc', 'geofield', 'geofield.apachesolr'); module_load_include('inc', 'geofield', 'geofield.schemaorg'); module_load_include('inc', 'geofield', 'geofield.microdata'); -/* * +/** * Max length of geohashes (imposed by database column length). */ define('GEOFIELD_GEOHASH_LENGTH', 16); @@ -41,8 +41,8 @@ function geofield_field_info() { } /** - * Implements hook_field_update_field. - * + * Implements hook_field_update_field(). + * * If a geofield has been created, check to see if the plugin controlling it * defines a 'postinstall' callback, if so, call it. */ @@ -72,8 +72,8 @@ function geofield_field_update_instance($instance, $prior_instance) { } /** - * Implements hook_field_delete_field. - * + * Implements hook_field_delete_field(). + * * If a geofield has been deleted, check to see if the plugin controlling it * defines a 'postdelete' callback, if so, call it. */ @@ -122,7 +122,7 @@ function geofield_field_settings_form($field, $instance, $has_data) { '#description' => "Select the Geospatial storage backend you would like to use to store geofield geometry data. If you don't know what this means, select 'Default'.", '#disabled' => $has_data, ); - + $form['settings'] = array( '#tree' => TRUE, ); @@ -163,7 +163,7 @@ function geofield_field_validate($entity_type, $entity, $field, $instance, $lang // Required field empty. if ($instance['required'] && $geom_empty) { $errors[$field['field_name']][$langcode][$delta][] = array( - 'error' => 'data_missing', + 'error' => 'data_missing', 'message' => t('%name is required and must not be empty.', array('%name' => $instance['label'])), ); } @@ -176,7 +176,7 @@ function geofield_field_validate($entity_type, $entity, $field, $instance, $lang $error = geofield_validate_geom($item); if ($error) { $errors[$field['field_name']][$langcode][$delta][] = array( - 'error' => 'data_faulty', + 'error' => 'data_faulty', 'message' => t('%name: Specified location data is invalid.', array('%name' => $instance['label'])), ); } @@ -300,7 +300,7 @@ function geofield_field_presave($entity_type, $entity, $field, $instance, $langc /** * Implements hook_field_load(). * - * Geofield stores it's data as WKB, but a binary format can cause + * Geofield stores it's data as WKB, but a binary format can cause * issues/confusion with working with other modules, notably Services. * To improve DX/discoverability of what we're storing, we convert * to WKT on load. @@ -342,7 +342,7 @@ function geofield_field_load($entity_type, $entities, $field, $instances, $langc } /** - * Implements hook_content_is_empty(). + * Implements hook_field_is_empty(). */ function geofield_field_is_empty($item, $field) { if (isset($item['input_format'])) { @@ -359,7 +359,7 @@ function geofield_field_is_empty($item, $field) { } /** - * Implements hook_view_api(). + * Implements hook_views_api(). */ function geofield_views_api() { return array( @@ -388,8 +388,8 @@ function geofield_ctools_plugin_api($module, $api) { } /** -* Implementation of hook_ctools_plugin_directory(). -*/ + * Implements hook_ctools_plugin_directory(). + */ function geofield_ctools_plugin_directory($module, $plugin) { if ($plugin == 'geofield_backend') { return 'includes/' . $plugin; @@ -444,7 +444,7 @@ function geofield_compute_values($raw_data, $input_format = NULL) { * @return * A populated geoPHP geometry object if valid geometry, no return otherwise. * - * @TODO: Refactor the function to not check for $input_format from both the optional secondary parameter and + * @TODO: Refactor the function to not check for $input_format from both the optional secondary parameter and * an array item in $raw_data. This is probably an artifact from how Geofield's widgets pass data to various field * hooks. We should only check the optional secondary parameter. * @TODO: Move constants from geofield.widgets.inc to geofield.module