Helper Reference - AgriLife/AgriFlex GitHub Wiki

obfuscate( $string )

Converts each letter in the passed string to their HTML-encoded characters. Helps prevent crawlers from picking up email addresses and other personal information for spam uses.

agriflex_agency()

Returns an array of the current site's selected agencies, whether or not only one agency is selected, and the Extension type.

Example returned array:

$a = agriflex_agency()

$a = array(
  'agencies' => array(
    'extension',
    'college',
  ),
  'single' => ,
  'ext-type' => 'county',
);