You are here

function jquerymobile_icon_position_options in jQuery Mobile module 7.2

List of available icons.

Values are saved in the form 'position' => array(<attribute settings>) They are saved this way to simplify sending the appropriate options to drupal_attributes() or you can use the top level keys as the value to pass along with data-iconpos

For example: top => array('data-iconpos' => 'top')

Return value

array Returns an array of icon positions

1 call to jquerymobile_icon_position_options()
_jquerymobile_button_settings in ./jquerymobile.module
Generate the attributes array for the given button settings.

File

./jquerymobile.module, line 348

Code

function jquerymobile_icon_position_options() {
  return array(
    'top' => array(
      'data-iconpos' => 'top',
    ),
    'left' => array(
      'data-iconpos' => 'left',
    ),
    'right' => array(
      'data-iconpos' => 'right',
    ),
    'bottom' => array(
      'data-iconpos' => 'bottom',
    ),
    'notext' => array(
      'data-iconpos' => 'notext',
    ),
  );
}