You are here

function sharebar_get_setting_str in ShareBar 6

Same name and namespace in other branches
  1. 7.2 sharebar.admin.inc \sharebar_get_setting_str()
  2. 7 sharebar.admin.inc \sharebar_get_setting_str()

Function to get settings.

File

./sharebar.admin.inc, line 389
Admin page callbacks for the block module.

Code

function sharebar_get_setting_str($str, $tag) {
  $n1 = strpos($str, $tag) + drupal_strlen($tag) + 1;
  $n2 = strpos($str, $tag, $n1) - 2;
  return drupal_substr($str, $n1, $n2 - $n1);
}