You are here

function farm_area_parse_names in farmOS 7

Parse a string of area names and return an array of loaded area entities. If area names do not exist, they can optionally be created.

Parameters

string $names: A comma-separated list of area names.

bool $create: Whether or not to create areas that don't exist. Defaults to FALSE.

Return value

array Returns an array of area objects. If the area names exist, they will be loaded from the database. Otherwise, they will be created.

Deprecated

Use farm_term_parse_names() instead.

See also

farm_term_parse_names()

File

modules/farm/farm_area/farm_area.module, line 151

Code

function farm_area_parse_names($names, $create = FALSE) {
  return farm_term_parse_names($names, 'farm_areas', $create);
}