You are here

function panels_common_get_arg_id in Panels 6.2

Same name and namespace in other branches
  1. 5.2 includes/common.inc \panels_common_get_arg_id()
1 call to panels_common_get_arg_id()
panels_ajax_context_item_add in includes/common-context.inc
Ajax entry point to add an context

File

includes/common-context.inc, line 980
includes/common-context.inc Provide API for adding contexts for modules that embed displays.

Code

function panels_common_get_arg_id($arguments, $name) {

  // Figure out which instance of this argument we're creating
  $id = 0;
  foreach ($arguments as $arg) {
    if ($arg['name'] == $name) {
      if ($arg['id'] > $id) {
        $id = $arg['id'];
      }
    }
  }
  return $id;
}